7 kyu

Timmy Time

Description
Loading description...
Strings
Fundamentals
  • Please sign in or sign up to leave a comment.
  • ejini战神 Avatar

    Description should be language-agnostic

    Node V.14 should be enabled

  • Voile Avatar

    Approved

  • msachi Avatar

    Nice kata! Please fix the spelling.

  • Vidmas Avatar

    "Write a function changeTime which increase or decrease given time. Input param is string in HH:MM format and delta is integere value -1 or 1. Let see some examples:"

    pakeisk į

    "Write a function changeTime which increases or decreases given time. Input param is string in HH:MM format and delta is integer value -1 or 1 in minutes. Let see some examples:"

  • jamesor Avatar

    Description states input will be HH:MM but in the random test on submission I was getting input that was 5:11 which has only a single digit hour. Practice tests show 08:15 which was expected.

  • matt c Avatar

    Never ever test using a function you have preloaded or else people can do what I've done, look at my solution.

    • matt c Avatar

      Also needs random test cases.

    • andzej.maciusovic Avatar

      Thanks for feedback, I changes to use Test.AssertEquals and added test with random time.

    • matt c Avatar

      well done, also just clearing up that function thing you put in the preloaded section was cool but since you used the same one in the final tests it's easy to cheat so you could still use it for final tests but done place it in the preloaded section :)

      Issue marked resolved by matt c 9 years ago