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.
Approved
python new test framework is required. updated in this fork
JS: Node v12 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
JS: Should have more sample tests
Nice kata. Had to make several attempts at cracking this one, but got there in the end with a unelegant solution
changed
Nice kata.
thank you kata sensei for comprehensive instructions.
A minor typo in the description:
The function should insert only after the first occur[R]ence ..
Looking at the tests I can tell that everything seems fine to me (especially when viewing tests requires completing the kata). So, I'm tempted to say that it's your code that isn't working correctly.
Deleted the red dot as suggested and now sample test passes. But Attempt fails on 1 basic test and 1 random test. I don't believe either failure has to do with my code, since both errors mention the
each_char
method and the random test error mentions thetimes
method. I used neither of those methods in my solution.For the basic test failure:
For the random test failure:
@mmanousos, click Attempt instead, or delete the red dot after the sample test and try again.
Mistake in sample tests in Ruby:
There's a mistake in sample tests.
Yes, I'm sure. My script runs on my system. I wrote it in my code editor then copied and pasted here. It is only 15 lines long, and includes all necessary closing
end
commands. So I'm not sure why they would register an error on line 20.Loading more items...