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 don't understand what the issue is. As "There are no multiple spaces in the test cases." you don't need to care about them. If the issue is that there are languages with multiple or trailing spaces please raise a new issue and list the languages.
Regards,
suic
I see. That's from Codewars test framework which we no longer use on Node 10+. I'll see if it's possible to port it.
With Node 10 I see this:
With Node 8.1.3 I see this:
Where one can click on Expected and Actual and see those values. The second is clearer.
@Chrono79 Node 10 should show expected and actual values.
The error message should be something like
expected 'A' to equal '65'
. What do you see?@Chrono79: Do you know how? AFAIK it's not possible. Thanks
@suic: Could I suggest you make Node 8.1.3 the default version? There it shows the Expected and Actual values, in Node 10 it doesn't (only the error message).
I've made some changes in the JS tests. Your code is incorrect. Here's an example test output:
Regards,
suic
Not at all, the test is ok:
wise
119ise
119esi
(second letter was i and last letter e)See?
There are spelling mistakes even in the tests. For example "wise" is "119eis" not "119esi" unless you're reversing the letters in the entire string as well, which the instructions don't say.
Mention the language, maybe the problem exists in a language and not in another.
You could just comment the first test and check the result of the next one.
Also for JavaScript, is there a way to show another test case? The first one is empty so it is not helpful when trying to console.log() and check my work. (In other words, is there a way to have, say, the " ("A wise old owl lived in an oak"), "65 119esi 111dl 111lw 108dvei 105n 97n 111ka"); " be tested as opposed to " (""), ""); "?
Also, clarification on what it means to "modify any of the cases to get a failure" would be greatly appreciated.
Thank you!
This comment is hidden because it contains spoiler information about the solution