Skip to content

Commit

Permalink
* more test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Jan 22, 2024
1 parent e0d5458 commit bff567f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/test/cljs/cljs/hashing_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@
(is (= (hash false) 1237)))

(deftest test-cljs-3410
(testing "Small floats should not hash the same"
(testing "Small doubles should not hash the same"
(is (not= (hash-double -0.32553251) (hash-double -0.0000032553251)))
(is (not= (hash -0.32553251) (hash -0.0000032553251)))))
(is (not= (hash -0.32553251) (hash -0.0000032553251))))
(testing "Same double hashes the same"
(is (= (hash 0.5) (hash 0.5)))
(is (= (hash -0.32553251) (hash -0.32553251)))
(is (= (hash -0.0000032553251) (hash -0.0000032553251)))))

0 comments on commit bff567f

Please sign in to comment.