Ad
  • Default User Avatar

    I am new to codewars, how can I see the unit tests used when I press "Attempt" button? (not the ones in the "Sample Tests")

    EDIT:
    Figured it out, just need to print out the input array in the function and it will show up in the Log of failed tests.

    Here is the "testUpAndDown":

    capacity = 5;
    input: ({3}, {2}, {0}, {2}, {}, {}, {5})
    expectedResult: {0, 1, 2, 3, 6, 5, 3, 2, 0}

  • Default User Avatar
    • you should be able to get the input by yourself
    • expected: no idea since that does not match any of the fixed tests that I saw...

    As you can see, your message and the information you gave are not really clear, for now... :o

  • Default User Avatar

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