Skip to content

Commit

Permalink
Add test for nil in case; refs CLJ-702
Browse files Browse the repository at this point in the history
Signed-off-by: Stuart Halloway <stu@Stuart-Halloways-MacBook-Air.local>
  • Loading branch information
Stuart Sierra authored and Stuart Halloway committed Feb 25, 2011
1 parent 8cea3d8 commit 2007193
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/clojure/test_clojure/control.clj
Expand Up @@ -285,6 +285,7 @@
{:r 2 :d 2} :droid
#{2 3 4 5} :set
[1 [[[2]]]] :deeply-nested
nil :nil
:default)]
(are [result input] (= result (test-fn input))
:number 1
Expand All @@ -305,6 +306,7 @@
:default #{2 3 4 5 6}
:droid {:r 2 :d 2}
:deeply-nested [1 [[[two]]]]
:nil nil
:default :anything-not-appearing-above)))
(testing "throws IllegalArgumentException if no match"
(is (thrown-with-msg?
Expand Down

0 comments on commit 2007193

Please sign in to comment.