From 0cf4cd3121fc7bae7d545064e80ef157e3fe8d5c Mon Sep 17 00:00:00 2001 From: Colin Jones Date: Tue, 21 Jan 2014 07:14:00 -0600 Subject: [PATCH] Move herbivore assertions together --- src/koans/09_runtime_polymorphism.clj | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/koans/09_runtime_polymorphism.clj b/src/koans/09_runtime_polymorphism.clj index 300d52a..56d37c5 100644 --- a/src/koans/09_runtime_polymorphism.clj +++ b/src/koans/09_runtime_polymorphism.clj @@ -26,14 +26,14 @@ (= "Bambi eats veggies." (diet {:species "deer" :name "Bambi" :age 1 :eater :herbivore})) - "Different methods are used depending on the dispatch function result" - (= "Simba eats animals." - (diet {:species "lion" :name "Simba" :age 1 :eater :carnivore})) - "Animals have different names" (= "Thumper eats veggies." (diet {:species "rabbit" :name "Thumper" :age 1 :eater :herbivore})) + "Different methods are used depending on the dispatch function result" + (= "Simba eats animals." + (diet {:species "lion" :name "Simba" :age 1 :eater :carnivore})) + "You may use a default method when no others match" (= "I don't know what Rich Hickey eats." (diet {:name "Rich Hickey"})))