Fails to apply for all testcases used here
ArihantKamal opened this issue · comments
Kamal Sharma commented
Expected Behavior
validate_user(".blue.kale", 3) -> should be False
validate_user("_red_quinoa", 4) -> should be False
Actual Behavior
validate_user(".blue.kale", 3) -> previously returning True
validate_user("_red_quinoa", 4) -> previously returning True
Steps to Reproduce the Problem
- username[0]=='.' or username[0]==''
above portion if removed from code should produce the same result for any string passed to validate_user( ) - function and string passed to this func. as parameter should start with "." or ""
Specifications
- Version: python interpreter 3.8.4
- Platform: linux/ window