diff --git a/src/koans/09_runtime_polymorphism.clj b/src/koans/09_runtime_polymorphism.clj index 56d37c5..2cd33cf 100644 --- a/src/koans/09_runtime_polymorphism.clj +++ b/src/koans/09_runtime_polymorphism.clj @@ -34,6 +34,10 @@ (= "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})) + "You may use a default method when no others match" (= "I don't know what Rich Hickey eats." (diet {:name "Rich Hickey"})))