Open nus-pe-bot opened 2 weeks ago
This is a fair point, but unfortunately it is something we were unable to address and have already acknowledged in our UG's "known issues".
In the future, we plan to improve the validation for dates to align with the Gregorian calendar.
Thank you!
--
Summary
Allowed to add a birth year of 0000, which should not be allowed
Steps to reproduce
Run this command:
add n/John Doe i/S1234567G d/0000-01-01 g/M p/98765432 e/johnd@example.com a/311, Clementi Ave 2, #02-25
Expected
Expect some error about invalid year to be thrown
Observed
Person successfully added
Tester Information
Apple M2 Pro 32 GB Java Version: openjdk version "17.0.11" 2024-04-16 LTS OpenJDK Runtime Environment Zulu17.50+19-CA (build 17.0.11+9-LTS) OpenJDK 64-Bit Server VM Zulu17.50+19-CA (build 17.0.11+9-LTS, mixed mode, sharing)
[original: nus-cs2103-AY2425S1/pe-interim#915] [original labels: type.FeatureFlaw severity.Low]