Coder Social home page Coder Social logo

clojure-expectations_clojure-test_issue-28's Introduction

clojure.test for Expectations issue

Test fails when it has exactly two assertions, and one of them is a "thrown?" assertion.

$ ./bin/kaocha 
[(.)(..F..F..F..F)(.............)]

FAIL in core-case2-test/foo-test (core_case2_test.clj:8)
(t/expecting "returns :b when :b" (t/expect :b (c/foo :b)))

Expected:
  #<java.lang.IllegalArgumentException@5f92e5eb java.lang.IllegalArgumentException: input is :a>
Actual:
  -#<java.lang.IllegalArgumentException@5f92e5eb java.lang.IllegalArgumentException: input is :a>
  +true

FAIL in core-case2-test/foo-test--another-order (core_case2_test.clj:15)
(t/expecting "throws when :a" (t/expect IllegalArgumentException (c/foo :a)))

Expected:
  true
Actual:
  -true
  +#<java.lang.IllegalArgumentException@335cbcbd java.lang.IllegalArgumentException: input is :a>

FAIL in core-case2-test/foo-test--two-thrown (core_case2_test.clj:22)
(t/expecting "throws when :a" (t/expect IllegalArgumentException (c/foo :a)))

Expected:
  #<java.lang.IllegalArgumentException@64c79b69 java.lang.IllegalArgumentException: input is :a>
Actual:
  -#<java.lang.IllegalArgumentException@64c79b69 java.lang.IllegalArgumentException: input is :a>
  +#<java.lang.IllegalArgumentException@a94c8e3 java.lang.IllegalArgumentException: input is :a>

FAIL in core-case2-test/foo-test--wo-expecting (core_case2_test.clj:29)
(t/expect :b (c/foo :b))

Expected:
  #<java.lang.IllegalArgumentException@54ee423f java.lang.IllegalArgumentException: input is :a>
Actual:
  -#<java.lang.IllegalArgumentException@54ee423f java.lang.IllegalArgumentException: input is :a>
  +true
9 tests, 26 assertions, 4 failures.

clojure-expectations_clojure-test_issue-28's People

Contributors

mt0erfztxt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.