Ad
  • Custom User Avatar

    After 3 intents my code passed but I 've had fails with logs like this:

    Expected: undefined, instead got: '        A    \n        W    \n        W    \nPBBPTQOICUDRZ\n        N    \n        P    \n        U    \n        O    \n        Z    \n        C    \n        L    \n        U    \n        L    \n        M    \n        C    \n        N    \n        T    \n        X    \n        M    \n        T    \n        R    \n'
    

    It seems random tests generate invalid strings.

  • Custom User Avatar

    Duplicate issue.

  • Custom User Avatar

    Don't suggest how to do it.

  • Custom User Avatar

    clue: try str2 = MTAJCBXVVUOGPTQXTUHK

  • Custom User Avatar

    The tests occasionally go haywire. If I keep submitting my solution it eventually errors. This does not seem to be a problem with my code.
    In the example below with str1 = NAOOKDQTSRJMWJZIFCO str2 = MTAJCBXVVUOGPTQXTUHKO, the tests expect a value of "undefined".

    Expected: undefined, instead got: 'NAOOKDQTSRJMWJZIFCO\n           T       \n           A       \n           J       \n           C       \n           B       \n           X       \n           V       \n           V       \n           U       \n           O       \n           G       \n           P       \n           T       \n           Q       \n           X       \n           T       \n           U       \n           H       \n           K       \n           O       \n'
    
    
    ... which visually looks correct:
    
    NAOOKDQTSRJMWJZIFCO
               T       
               A       
               J       
    etc.
    
    
  • Custom User Avatar

    Thanks for completing the Kata, a good and compact solution! I just used plain text spaces in the test expectation as Codewars displays in plain text.

  • Default User Avatar

    I'm just saying for JS I used \xa0\ for spaces as mentioned here https://stackoverflow.com/questions/33539797/how-to-create-string-with-multiple-spaces-in-javascript. When I entered my results it gave me errors. I spent alot of time trying to figure out why it didn't work. the "expectecation" and the "actual" results from the tests were the same. Then I decided to use " " as in " ".repeat(). It was frustrating trying to figure out why the answer was not accepted.

  • Custom User Avatar

    ;-)

  • Custom User Avatar

    Could you please tell me where abouts the code needs fixing, the line number?
    I'm happy to make changes. Thanks.

  • Custom User Avatar

    Is there anything else I can do?
    Thanks.

  • Custom User Avatar

    I have deleted the commented out text in solution and tests.
    Thanks.

  • Custom User Avatar

    Why don't you just delete the outdated part instead of commenting them out? They're already obsolete so there's no reason to keep them.

  • Custom User Avatar

    Is the issue resolved?

  • Custom User Avatar

    I have removed Example Test Cases with input validation comments. And all other comments. Thanks.

  • Custom User Avatar

    I have removed input validation from sample tests.
    Thank you.

  • Loading more items...