Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Im using javascript I provided What the error is Showing me . It's Expeacting the wrong tail to be returNed
All tests are random, so I can't help you, especially since you're not telling me what language you're using. You probably need to change your solution.
The example Clojure tests are misleading. They will pass with the most trivial implementation (as long as the functions are defined).
(deftest example-tests
(is (head [5 1]) 6)
(is (tail [1]) [])
(is (init [1 5 7 9]) [1 5 7])
(is (last_ [7 2]) 2)
)
They should be
(deftest example-tests-fixed
(is (= (head [5 1]) 6))
(is (= (tail [1]) []))
(is (= (init [1 5 7 9]) [1 5 7]))
(is (= (last_ [7 2]) 2))
)
This comment is hidden because it contains spoiler information about the solution