diff --git a/resources/koans.clj b/resources/koans.clj index 2c137d2..2c7715b 100644 --- a/resources/koans.clj +++ b/resources/koans.clj @@ -4,6 +4,7 @@ true false true + true 3]}] ["02_lists" {"__" [1 2 3 4 5 @@ -20,9 +21,8 @@ ()]}] ["03_vectors" {"__" [1 - [] [1] - [nil] + [nil nil] 2 [333] :peanut diff --git a/src/koans/01_equalities.clj b/src/koans/01_equalities.clj index f29551c..d36e8cd 100644 --- a/src/koans/01_equalities.clj +++ b/src/koans/01_equalities.clj @@ -17,5 +17,8 @@ "But a looser equality is also possible" (= __ (== 2.0 2)) + "Something is not equal to nothing" + (= __ (not (= 1 nil))) + "When things cannot be equal, they must be different" (not= :fill-in-the-blank __)) diff --git a/src/koans/03_vectors.clj b/src/koans/03_vectors.clj index 9397378..bf7fcf9 100644 --- a/src/koans/03_vectors.clj +++ b/src/koans/03_vectors.clj @@ -1,15 +1,12 @@ (meditations - "You can use vectors in clojure to create an 'Array' like structure" + "You can use vectors in clojure as array-like structures" (= __ (count [42])) - "You can create a vector in several ways" - (= __ (vec nil)) - - "And populate it in either of these ways" + "You can create a vector from a list" (= __ (vec '(1))) - "There is another way as well" - (= __ (vector nil)) + "Or from some elements" + (= __ (vector nil nil)) "But you can populate it with any number of elements at once" (= [1 __] (vec '(1 2)))