Ad
  • Custom 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}

  • Custom User Avatar

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