0

Why I pass all cases in the password validation challenge?

I did this challenge and I passed all cases with the following code. My code says that only 1 number and only 1 special character is needed, but the challenge says it have to be 2 of each. https://www.sololearn.com/coach/76?ref=app https://code.sololearn.com/cKxRq1EzGgbl/?ref=app

14th Jan 2021, 10:39 AM
Stefanoo
Stefanoo - avatar
1 Antwort
+ 1
Stefanoo it does look like the testing is weak. Your code is definitely wrong according to the description of the question, but it still works. For some reason, the test cases only contain either passwords with 2 numbers and 2 special characters or NO number or NO special character.
14th Jan 2021, 11:19 AM
XXX
XXX - avatar