nus-cs2113-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Differing behaviour despite same error #2551

Open nus-se-script opened 1 month ago

nus-se-script commented 1 month ago

Problem

When entering a float as an answer, the program only detects the error when it is a small value. As shown in screenshot below, entering the float 24.0 presents the error message "Answer must be an integer" but 999999999999.0 does not yield the same error message.

Steps to replicate

  1. Navigate to an enemy.
  2. Enter e and fight.
  3. Enter 10.0.
  4. Enter 999999999999.0

Screenshot

image.png


[original: nus-cs2113-AY2324S2/pe-interim#2538] [original labels: severity.Low type.FeatureFlaw]

BestDownLoader365 commented 4 weeks ago

Team's Response

Although it does not give you a message, you enter an incorrect answer and the program detects that.

Duplicate status (if any):

--