Ad
  • Custom User Avatar
  • Custom User Avatar

    If the input to the function is less than 1, greater than 10, or invalid in any way, return an empty array.

    Because of that. Closing.

  • Custom User Avatar

    You have to return max 5 results.

  • Custom User Avatar

    It's an old kata bug :( Because the test cases are already locked I've updated in the descriptions what you should do.

  • Default User Avatar

    Triple and double digits have to go sequentially in each num. (zzz555zz z55zzz-> 1) (z5zzz55zz z5zz5zz ->0)

  • Default User Avatar

    The test cases below your code block are not provided, and have only a dummy test that compares the string literals of "actual" and "expected". You can either copy in your own unit tests, or ignore them and submit.

  • Custom User Avatar
  • Custom User Avatar

    You can print the input to the console to see where you went wrong. You seem to be failing these two tests:

    Test.expect(!validate('fjd3IR9.;'), 'Expected false');
    Test.expect(!validate('fjd3 IR9'), 'Expected false');

    The Kata test cases are correct so I think you need to double check your code. Without seeing your code I can't directly comment on why you failed but I assume it's because you are allowing non-alphanumerical characters to pass. If you need any help, just shout me.