Ad
  • Custom User Avatar

    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

  • Custom User Avatar

    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.

  • Custom User Avatar

    With Node 10 I see this:

    expected 'something' to equal '65'
    

    With Node 8.1.3 I see this:

    expected 'something' to equal '65'
    Expected Actual
    

    Where one can click on Expected and Actual and see those values. The second is clearer.

  • Custom User Avatar

    @Chrono79 Node 10 should show expected and actual values.

    (only the error message)

    The error message should be something like expected 'A' to equal '65'. What do you see?

  • Custom User Avatar

    @Chrono79: Do you know how? AFAIK it's not possible. Thanks

  • Custom User Avatar

    @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).

  • Custom User Avatar

    I've made some changes in the JS tests. Your code is incorrect. Here's an example test output:

    //                            your result
    //       /---------------------------------------------------\
    expected '65 119eisi 111dll 111lww 108divei 105nn 97nn 111kaa' to equal '65 119esi 111dl 111lw 108dvei 105n 97n 111ka'
    

    Regards,

    suic

  • Custom User Avatar

    Not at all, the test is ok:
    wise

    The first letter needs to be converted to its ASCII code.

    119ise

    The second letter needs to be switched with the last letter

    119esi (second letter was i and last letter e)

    See?

  • Custom User Avatar

    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.

  • Custom User Avatar

    Mention the language, maybe the problem exists in a language and not in another.

  • Custom User Avatar

    You could just comment the first test and check the result of the next one.

  • Custom User Avatar

    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!

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution