diff --git a/src/recursion.clj b/src/recursion.clj index 5bbd715..71be8e7 100644 --- a/src/recursion.clj +++ b/src/recursion.clj @@ -6,7 +6,7 @@ (defn singleton? [coll] :-) -(defn last-element [coll] +(defn my-last [coll] :-) (defn my-filter [f a-seq] diff --git a/test/recursion_test.clj b/test/recursion_test.clj index 26355a1..891e4d0 100644 --- a/test/recursion_test.clj +++ b/test/recursion_test.clj @@ -15,10 +15,10 @@ (singleton? []) => false (singleton? [1 2 3]) => false) -(facts "last-element" - (last-element []) => nil - (last-element [1 2 3]) => 3 - (last-element [2 5]) => 5) +(facts "my-last" + (my-last []) => nil + (my-last [1 2 3]) => 3 + (my-last [2 5]) => 5) (facts "my-filter" (my-filter odd? [1 2 3 4]) => '(1 3)