Ad
  • Custom User Avatar

    Already fixed it.

  • Custom User Avatar

    Ruby, detected by the post from amedeomajer below: tests are susceptible to input mutation.

  • Custom User Avatar

    That's because strings are mutable in Ruby, and you're mutating the input, changing the expected value. Now it doesn't happen anymore, but you should fix your code to make it work.

  • Custom User Avatar

    the expected result for the last test is wrong,
    the fourth to last number is always different than the input one.

    example:
    cc = "65473632678289"
    expented output = "##########4289"