Ad
  • Custom User Avatar

    There an extra "]" in the first comment in instructions.
    Got me when I copied that to test a solution.

  • Custom User Avatar

    How about this test?

    Test.expect(solution((1..3).to_a, -3, 'a') == 1, 'Using a negative index returned the wrong value.')

    -3 in this case is a correct index but some provided solutions would return the default value.