summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMeikel Brandmeyer <mb@kotka.de>2010-05-27 18:49:42 +0200
committerStuart Halloway <stu@thinkrelevance.com>2010-06-03 21:20:47 -0400
commit7bf68461de66ef2d204487e345b2af18418ea581 (patch)
tree54b0970c21fb78e23a800831bec7cf3122f2e111 /test
parentfb52b69d75868e4ce49d0123bc1ceaae8d6f5fe8 (diff)
Make disj nil-aware
Refers #360 Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Diffstat (limited to 'test')
-rw-r--r--test/clojure/test_clojure/data_structures.clj4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/clojure/test_clojure/data_structures.clj b/test/clojure/test_clojure/data_structures.clj
index 690bde4e..ee4fd41a 100644
--- a/test/clojure/test_clojure/data_structures.clj
+++ b/test/clojure/test_clojure/data_structures.clj
@@ -728,6 +728,7 @@
; identity
(are [x] (= (disj x) x)
+ nil
#{}
#{1 2 3}
; different data types
@@ -753,6 +754,9 @@
(sorted-set 1 2) )
(are [x y] (= x y)
+ (disj nil :a) nil
+ (disj nil :a :b) nil
+
(disj #{} :a) #{}
(disj #{} :a :b) #{}