Ad
  • Custom User Avatar

    Lacking tests (only 1 sample test, 3 fixed tests, and no random tests currently)

  • Custom User Avatar

    string "6F43E8" must throw "Error" like instructions say at the end.

  • Custom User Avatar

    return false/False

    or

    throw "Error"

  • Custom User Avatar

    Ah, I understand. Thank you for your assistance and re-explanation! I can now see this is not a Kata issue now, and was able to fix my code and solve the kata.

  • Custom User Avatar

    To clarify: Please print the input. '6F43E8' is not the input of the test where your code is failing.
    Read this: https://docs.codewars.com/training/troubleshooting/#print-input
    Your code fails another test case.
    Also if you select Node v8.1.3 you may get clearer error messages.

  • Custom User Avatar

    Yes, I made the same experience.
    I have translated it to Java. I proposed to clarify the instructions.

  • Custom User Avatar

    As I said, it's not the same test that fails, they are the next two. Changing Node's version makes that clearer, it won't make your code pass.

    Log
    6F43E8 6438
    true
    error thrown
    expected [Function] to throw an error but 'Error' was thrown
    expected [Function] to be a function
    

    That's all green, the next two fail.

  • Custom User Avatar

    it works with every other case , even this case works when i console log it . just doesnt work when testing .

  • Custom User Avatar

    It seems to persist when i select Node v8.1,3. Can you explian how it is my code that is failing, rather than a kata issue, if the "test" case passes, but then the same argument failed when "attempted"?

  • Custom User Avatar

    Select Node v8.1,3, that's not the input your code is failing. Not a kata issue.

  • Custom User Avatar

    I think I've run into an issue. The "6F43E8" test case passes when I "test" my code, but if I "attempt" the problem, the "6F43E8" attempt case does not pass. Why would it pass on the "test" but not on the "attempt"? Every other attempt and test case pass.

  • Custom User Avatar

    Sorry, but this is not a kata issue, the instructions are clear enough. Make it a suggestion if you want.

  • Custom User Avatar

    7–8: The month of birth (7th character incremented by 5 if driver is female i.e. 51–62 instead of 01–12)

    Read that again, those are two digits representing a month. The date is another item:

    9–10: The date within the month of birth

  • Custom User Avatar

    This Kata doesnt only consider months, the driver's birth date is important as well.
    xx-xx is arguably the most common date format there is, either written month-day or day-month.
    01-12 is an uninintutive way to express jan-dec in a kata where interpretation of the full date(day, month, and year) are important to create a solution.

  • Custom User Avatar

    Learned a great new method to sort an array with another array. Thank you for this kata.

  • Loading more items...