Ad
  • Default User Avatar

    yeah men, the problem was my code well not, the problem was my logic in that moment, but I can do it the challengue.
    The problem was that I misunderstand the assert section.
    thanks for the help

  • Custom User Avatar

    I can confirm the problem is in your code, check what it does with a 2 letters word for instance.

  • Default User Avatar

    thanks for the help guys, I don't think about the version node, and I will thinking again my code.

  • Custom User Avatar

    That would be great, thanks.

  • 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?

  • Default 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).

  • Default 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

  • Default User Avatar

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

  • Default User Avatar

    Can you paste here your code and mark it as a spoiler? Thanks, suic

  • Default User Avatar

    I do not know what happens with the tests, when I perform my function it does it in the correct way in the way it is in the instructions, but it tells me that it expects another value and it is the sentence with repeat cheracteres.
    What happen?