Ad
  • Custom User Avatar

    Hello,

    I try to solve this with Kotlin.
    But I got the feeling that the error message seems to bo wrong in the test cases.
    Here is an example:

    Input: 'run{->a}' expected:<[]> but was:<[Hugh?]>

    When I got the description correct the input is invalid so the answer should be Hugh? but the test case expects the empty string as answer.

    Is the test broken ? (Are some test broken ?)

    regards
    Kai

  • Custom User Avatar

    There are no months in the kata's description.

  • Custom User Avatar

    my output to 132030240 is "4 years, 2 months, 8 days, 3 hours, 4 minutes"

  • Custom User Avatar

    Hello,

    I use kotlin and I got trouble with some random tests:
    for the input 9376316:
    TimeFormatter.formatDuration(9376316)
    my solution gives the output:
    3 months, 18 days, 12 hours, 31 minutes and 56 seconds
    but the test expects:
    expected:<[10]8 days, 12 hours, 31...> but was:<[3 months, 1]8 days, 12 hours, 31...>
    The 108 days however violate the rule that the biggest units possible should be used.
    Did I got something wrong ? or are the tests broken ?

    best regards
    Kai

  • Custom User Avatar

    I well understand that but the question is why my program is good for all the tests but one
    It's very curious
    I am not the first who find that

  • Custom User Avatar

    Print your output and maybe you will understand better.
    [320, 441] should equal [1050, 1925] means you returned [320, 441] instead of [1050, 1925].

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    thx
    that was the problem

  • Custom User Avatar

    Which one of those is n? m should be greater than n. 199760 is out of bounds, so it can't be n, and it's less than 309135 so it can't be m either.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution