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.
This comment is hidden because it contains spoiler information about the solution
I wasn't mutating the array but it was something else. The error message for the 3rd test is wrong when you click test but correct when you click attempt as the attempt tests have a different
items
array. It was only when I got some visibility that I was able to work out what was happening.This test:
items.contains_all?([9,2,5,4,10]), false, 'items.contains_all?([9,2,5,4,10] should have been true')
is passing when I click test but failing when I click attempt. From what I can tell it should return false, which it does when I click test but when I click attempt it returns true. I'm assuming it's a bug/issue but I have no idea how to solve it. Anyone have any ideas? Thanks.Thanks Pablo. My fault as I missed something in the instructions, ha ha! Now that I've sorted that, I'm getting closer to solving it. Thought I had but I need to fix one aspect of my logic. This is a good Kata though so thanks :)
I am doing this in Ruby and I believe there is an issue. This is test case 18:
Test.assert_equals(points("44421"), 0)
but I believe it should be returning 30 as there are 3 x 4s. I also noticed the input in this test is in the0
point output section of the instructions so guessing someone has copied it from there to create the test. Please can this be fixed as currently I can't complete this Kata. Thank you.This comment is hidden because it contains spoiler information about the solution