36-650-Fall-2020 / fp-unit-test-assignment-YixuanLuo98

fp-unit-test-assignment-YixuanLuo98 created by GitHub Classroom
1 stars 0 forks source link

possible errors #6

Open alexazhu opened 3 years ago

alexazhu commented 3 years ago

for line 13 in main.py, maybe consider the scenario where user input is "state" in plural or in the capital to accommodate potential error in input; possible solution

if input.to_lower() in ["state","states"]

Thanks

YixuanLuo98 commented 3 years ago

True!! That was something I did not think of at the beginning which is quite important. Maybe I should implement a few cases which could be readable by the system and let it show "Sorry, invalid input" or something similar to remind the users to select directly from the sample expression I gave. Thanks for bringing it up!