Fix already-passing koans

This commit is contained in:
Colin Jones 2011-06-10 22:11:45 -05:00
parent 9ead934759
commit 5a5f519fb8
3 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
(meditations (meditations
"There are two ways to create maps" "There are two ways to create maps"
(= {} (hash-map)) (= __ (hash-map))
"Maps in clojure associate keys with values" "Maps in clojure associate keys with values"
(= __ (count (hash-map))) (= __ (count (hash-map)))

View File

@ -1,6 +1,6 @@
(meditations (meditations
"You can create a set in two ways" "You can create a set in two ways"
(= #{} (set nil)) (= #{} (set __))
"They are another important data structure in clojure" "They are another important data structure in clojure"
(= __ (count #{1 2 3})) (= __ (count #{1 2 3}))

View File

@ -37,13 +37,15 @@
[:butter :and] [:butter :and]
3]} 3]}
"sets" {"__" [3 "sets" {"__" [nil
3
#{1 2 3 4 5} #{1 2 3 4 5}
#{1 2 3 4 5} #{1 2 3 4 5}
#{2 3} #{2 3}
#{1 4}]} #{1 4}]}
"maps" {"__" [0 "maps" {"__" [{}
0
1 1
2 2
2 2
@ -69,7 +71,7 @@
"conditionals" {"__" [:a "conditionals" {"__" [:a
[] []
nil nil
:glory :glory
4 6 :your_road 4 6 :your_road
''doom 0 ''doom 0