New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test cases for AddCommand, DeleteCommand and relevant classes #78
Conversation
|
||
//* `add n/Betsy Crowe t/friend e/betsycrowe@example.com a/Newgate Prison p/1234567 t/criminal` | ||
[TIP] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice tip. 👍🏻
@@ -26,13 +29,32 @@ public void isValidFormatExpiryDate() { | |||
assertTrue(ExpiryDate.isValidFormatExpiryDate("2/06/1999")); | |||
|
|||
// invalid date | |||
assertFalse(ExpiryDate.isValidFormatExpiryDate("99/99/2")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we test invalid days and months?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noted, will make the changes to test invalid days and months as well!
Add test cases for AddCommand, DeleteCommand and relevant classes
Update UserGuide (please refer to: https://f11-2-s-userguide.netlify.com/userguide)