Skip to content
Prev Previous commit
* some basic arithmetic cases
  • Loading branch information
swannodette committed Sep 26, 2023
commit ec1e56f298f30f45947b928a21b80c6c93527b17
6 changes: 5 additions & 1 deletion src/test/cljs/cljs/bigint_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
(is (= (js/BigInt 1) 1))
(is (= 1 (js/BigInt 1))))
(testing "Interaction with core"
(is (= (range 1 5) (range 1 5N)))))
(is (= (range 1 5) (range 1 5N))))
(testing "Arithmetic"
(is (= 2 (+ 1 1N)))
(is (= 0.5 (/ 1N 2)))
(is (= 4N (* 2N 2)))))

(comment

Expand Down