Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

mt0erfztxt/clojure-expectations_clojure-test_issue-28

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published