Code Code Credit Card Validator : Test Case 4 invalid result | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code Code Credit Card Validator : Test Case 4 invalid result

I am doing the Code Coach challenges. I am try to solve the Credit Card Validator. Test Case 4 keeps failing. I have tested all results in between, with the sample input. That comes out correct. Can some one give me a hint, what is tested in Test Case 4. Or why my code fails in test case 4. https://code.sololearn.com/cuTQtxAdoj8R

23rd Sep 2020, 9:35 PM
sneeze
sneeze - avatar
2 Answers
+ 4
The "Subtract 9 from all numbers higher than 9" part needs a small fix. You'll find it out :)
23rd Sep 2020, 10:07 PM
Kevin ★
+ 2
Thank you. That was exactly what I needed to know. Stupid bug. Problem solved.
24th Sep 2020, 7:29 PM
sneeze
sneeze - avatar