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.
I am translating a Kata into Ruby, and need to disable the use of certain operators. What is the best way to go about this?
Found the issue. I had an extra space. The test output was condensing the white space, so 2 spaces appeared to be 1.
I diagnosed the issue by running my code in the terminal with a "puts" statement.
After correcting the white space, my code passed all tests.
Tests are too dependent on white space being correct.
It is difficult to diagnose a white space issue because the test output apparently removes extra white space.
Here is an example:
In the above example, my code had an additional space before the semicolon, but the test output makes the actual and expected values appear identical.
My tests are failing even though the strings appear to match. I have even compared the string using the tool at http://www.textdiff.com/, and the strings show that they match.
Here is the failure message:
Here's the output again, lined up for easy comparison:
What am I missing?