You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a test fails due to unequal maps, difftest flags a key where only the type of collection differs, not the content. This is a false positive because those collections are still equal (and if the maps are otherwise equal, the test does not fail).
Here is what I mean:
(deftest bad
(testing "oops"
(is (= {:a [1] :b 2} {:a '(1) :b 2}) "all else equal")
(is (= {:a [1] :b 2} {:a '(1) :b 3}) "all else unequal")))
You can see that the first test passed when considering only [1] vs '(1), and the second failed due to :b, but difftest picks up :a as well even though Clojure does not care.
The text was updated successfully, but these errors were encountered:
When a test fails due to unequal maps, difftest flags a key where only the type of collection differs, not the content. This is a false positive because those collections are still equal (and if the maps are otherwise equal, the test does not fail).
Here is what I mean:
and the output
You can see that the first test passed when considering only
[1]
vs'(1)
, and the second failed due to:b
, but difftest picks up:a
as well even though Clojure does not care.The text was updated successfully, but these errors were encountered: