fsgmhoward / CS2113T-pe

0 stars 0 forks source link

Wrong error message output for "findFacility" when large k is entered #9

Open fsgmhoward opened 3 years ago

fsgmhoward commented 3 years ago
What else would you like to do?
findFacility<library1><Canteen><1>
canteen1@N4-01-01
What else would you like to do?
findFacility<library1><Canteen><20>
Unable to find top20! There are only 4 Canteen available
What else would you like to do?
findFacility<library1><Canteen><2000000000000000000>
please try again! remember to input location name, the facility name that you want to look for and the number of nearest facilities you are searching for
For example:findFacility<library1><Canteen><2>

When a large k like 2000000000000000000 is entered, it just prints out a generic error message instead of stating the k is larger than the number of available facilities, like what it did for 20.

nus-pe-bot commented 3 years ago

Your response not required for this bug as the team has accepted the bug as it is.