From 5a5f519fb873e0e848d0afc6d891d5796c239438 Mon Sep 17 00:00:00 2001 From: Colin Jones Date: Fri, 10 Jun 2011 22:11:45 -0500 Subject: [PATCH] Fix already-passing koans --- src/koans/maps.clj | 2 +- src/koans/sets.clj | 2 +- src/path_to_answer_sheet.clj | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/koans/maps.clj b/src/koans/maps.clj index bbaeeab..a26a6fb 100644 --- a/src/koans/maps.clj +++ b/src/koans/maps.clj @@ -1,6 +1,6 @@ (meditations "There are two ways to create maps" - (= {} (hash-map)) + (= __ (hash-map)) "Maps in clojure associate keys with values" (= __ (count (hash-map))) diff --git a/src/koans/sets.clj b/src/koans/sets.clj index 60a6575..e27416b 100644 --- a/src/koans/sets.clj +++ b/src/koans/sets.clj @@ -1,6 +1,6 @@ (meditations "You can create a set in two ways" - (= #{} (set nil)) + (= #{} (set __)) "They are another important data structure in clojure" (= __ (count #{1 2 3})) diff --git a/src/path_to_answer_sheet.clj b/src/path_to_answer_sheet.clj index 2bf71dd..66a2ea3 100644 --- a/src/path_to_answer_sheet.clj +++ b/src/path_to_answer_sheet.clj @@ -37,13 +37,15 @@ [:butter :and] 3]} - "sets" {"__" [3 + "sets" {"__" [nil + 3 #{1 2 3 4 5} #{1 2 3 4 5} #{2 3} #{1 4}]} - "maps" {"__" [0 + "maps" {"__" [{} + 0 1 2 2 @@ -69,7 +71,7 @@ "conditionals" {"__" [:a [] - nil + nil :glory 4 6 :your_road ''doom 0