Skip to content

Commit fc94001

Browse files
anmonteirodnolen
authored andcommitted
CLJS-2355: Fix tests after CLJS-2349
*warn-on-reflection* doesn't exist in CLJS
1 parent 3c0df9c commit fc94001

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/test/cljs/cljs/core_test.cljs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,13 +1455,12 @@
14551455
(is (= 2 @a))))
14561456

14571457
(deftest deref-swap-arities
1458-
(binding [*warn-on-reflection* true]
1459-
(let [a (atom 0)]
1460-
(is (= [0 1] (swap-vals! a + 1)))
1461-
(is (= [1 3] (swap-vals! a + 1 1)))
1462-
(is (= [3 6] (swap-vals! a + 1 1 1)))
1463-
(is (= [6 10] (swap-vals! a + 1 1 1 1)))
1464-
(is (= 10 @a)))))
1458+
(let [a (atom 0)]
1459+
(is (= [0 1] (swap-vals! a + 1)))
1460+
(is (= [1 3] (swap-vals! a + 1 1)))
1461+
(is (= [3 6] (swap-vals! a + 1 1 1)))
1462+
(is (= [6 10] (swap-vals! a + 1 1 1 1)))
1463+
(is (= 10 @a))))
14651464

14661465
(deftest deref-reset-returns-old-value
14671466
(let [a (atom 0)]

0 commit comments

Comments
 (0)