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.
Kata: Dead & Lost are friends, make them separeted, then you'll solve it.!
Ruby tests overhauled
hopefully fixed there
Where do you see
"gap"
there? Which language are you talking about?Wave output should not include the original word. For input "gap", expected is ["Gap", "gAp", "gaP"], but it also includes "gap" which is not a wave. Please check test case.
for this code have all test issue
done
it's unclear whether strings consisting entirely of spaces are possible input or not. the description does say that the string can be empty, and several languages have a fixed test with an empty string that results in an empty array, which is probably the intended answer for a string consisting entirely of spaces as well.
Merged
proposed fix there
I revamped the tests. The tests' structure is now as follows:
That's exactly what is being done, omitting the return keyword is just a common shorthand for 1 liner arrow functions
Nice kata, but it would be great to have a preloaded "events" dictionary that maps snakes and ladders where keys represent the old positions and values the new ones.
This would save time and effort and help prevent mistakes from transfering the values by hand.
Couldn't it be better to show why the tests aren't passing?
like saying the moves played so far so that I track where the problem in code is
my code passed 1000 tests and didn't pass another 1000 ones
I liked this kata too much because it makes You to think hard in every marshroot case. Thank You very much!
Loading more items...