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.
No worries! Thanks for the Kata!! I really enjoyed it.
For the Ruby Version, it throws errors before you even add any code.
For each of the rows of the test that are expecting results i.e.
Test.assert_equals(animals(72, 200), (44, 28))
Test.assert_equals(animals(116, 282), (91, 25))
I think you're saying the result should be an array, correct? So I think each of these results should be listed with [ ] .
So it would look like:
Test.assert_equals(animals(72, 200), [44, 28])
Test.assert_equals(animals(116, 282), [91, 25])
This comment is hidden because it contains spoiler information about the solution
I'm having the same problem it fails the last test. I added your test cases and my code passes. I wish we could see all the test cases.
I have completed this kata and got the following feedback:
Digitize
is defined
Test Passed
should work
Then it shows that it passed but then I'm not passing on to the next level. There is a bunch of texts that looks like I didn't pass it's in red but you can see it says test passed. If it did pass then I have no idea what to change to make it pass better or something so that I can move to the next kata. Any advice anyone?
I'm not sure I understand how to do this. On other problems there has been test cases already created but these ones look like they're not there. Am I supposed to create these tests to test my change to the code that already existed? I think I solved it but it keeps coming back as an error but there's no error msg so I'm wondering if this is what my problem is? I have run this in irb and it works fine.
I love your solution. I didn't even think to use the log. I'm grateful for the oportunity to look at others solutions after I'm able to come up with a workable solution, it helps me learn. Thank you.