Ad
  • Custom User Avatar
    expected [ 'Mn', 'Wc', 'kU', 'Xp', 'yw', 'fx', 'Uf', 'qp', 'F_', 'FH', 'vX', 'DU', 'Py', 'HI', 'DT', 'jO' ] // This is your wrong answer
    to deeply equal [ 'Mn', 'Wc', 'kU', 'Xp', 'yw', 'fx', 'Uf', 'qp', 'FM', 'FH', 'vX', 'DU', 'Py', 'HI', 'DT', 'jO' ] // This is the right answer
    

    That's a problem with your code. Print the input and debug it. Or add this test to sample tests and see your code fail:

    assert.deepEqual(solution("abba"), ["ab", "ba"]);
    

    There is no problem with the tests:

    JavaScript Completions 36104

  • Custom User Avatar

    No, there is no problem in random tests in javascript. That's your code's problem, read this: https://docs.codewars.com/training/troubleshooting/