Skip to content

Commit ae6c72e

Browse files
committed
Fix: don't depend on order of map entries
1 parent 341a284 commit ae6c72e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/clojure/core_test/apply.cljc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
(is (= 45 (apply + (range 10)))) ; All args as sequential
2727
(is (= 10 (apply + 1 [2 3 4])))
2828
(is (= 10 (apply + 1 #{2 3 4}))) ; A set works but order not guaranteed
29-
(is (= [[:a 1] [:b 2]]
30-
(apply conj [] {:a 1, :b 2})))
29+
(is (= #{[:a 1] [:b 2]} ; Can't guarantee order of map entries
30+
(apply conj #{} {:a 1, :b 2})))
3131
(is (= [\a \b \c] ; String is sequence of chars
3232
(apply conj [] "abc")))
3333

0 commit comments

Comments
 (0)