Skip to content

Commit ec1e56f

Browse files
committed
* some basic arithmetic cases
1 parent d9c2b52 commit ec1e56f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/cljs/cljs/bigint_test.cljs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
(is (= (js/BigInt 1) 1))
3737
(is (= 1 (js/BigInt 1))))
3838
(testing "Interaction with core"
39-
(is (= (range 1 5) (range 1 5N)))))
39+
(is (= (range 1 5) (range 1 5N))))
40+
(testing "Arithmetic"
41+
(is (= 2 (+ 1 1N)))
42+
(is (= 0.5 (/ 1N 2)))
43+
(is (= 4N (* 2N 2)))))
4044

4145
(comment
4246

0 commit comments

Comments
 (0)