google / it-cert-automation-practice

Google IT Automation with Python Professional Certificate - Practice files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fails to apply for all testcases used here

ArihantKamal opened this issue · comments

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

  1. 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