Skip to content

Commit

Permalink
piip
Browse files Browse the repository at this point in the history
  • Loading branch information
Fingerzam committed Oct 23, 2012
1 parent 16de4b0 commit 5dc4de3
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions test/recursion_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,14 @@

(facts "powerset"
(powerset []) => (just empty?)
(powerset [1 2 4]) => (just empty?
(just 4 :in-any-order)
(just 2 :in-any-order)
(just 2 4 :in-any-order)
(just 1 :in-any-order)
(just 1 4 :in-any-order)
(just 1 2 :in-any-order)
(just 1 2 4 :in-any-order) :in-any-order)
(powerset [1 2 4]) => (some-checker
(just empty?
(just 4 :in-any-order)
(just 2 :in-any-order)
(just 2 4 :in-any-order)
(just 1 :in-any-order)
(just 1 4 :in-any-order)
(just 1 2 :in-any-order)
(just 1 2 4 :in-any-order) :in-any-order)
(just #{#{} #{4} #{2} #{2 4} #{1} #{1 4} #{1 2} #{1 2 4}}))
(count (powerset (range 10))) => 1024)

0 comments on commit 5dc4de3

Please sign in to comment.