From 1363e05e62d439b8ccff70392d68cad5ba2100ff Mon Sep 17 00:00:00 2001 From: Stephen Caraher Date: Thu, 23 Jul 2015 22:54:46 +1000 Subject: [PATCH] add test for atom and wrapper variadic swap! --- test/reagenttest/testwrap.cljs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/reagenttest/testwrap.cljs b/test/reagenttest/testwrap.cljs index 2012746..6b64105 100644 --- a/test/reagenttest/testwrap.cljs +++ b/test/reagenttest/testwrap.cljs @@ -105,6 +105,8 @@ (is (= (swap! a update-in [:k] inc) (swap! b update-in [:k] inc))) (is (= @a @b {:k 2})) + (is (= (swap! a assoc :k 3 :l 4 :m 7 :n 8 :o) + (swap! b assoc :k 3 :l 4 :m 7 :n 8 :o))) (is (= (reset! a 23) (reset! b 23))) (is (= @a @b))