forked from AY2324S1-CS2103-F13-2/tp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d716e14
commit eb43021
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,12 @@ public void isSamePerson() { | |
editedAlice = new PersonBuilder(ALICE).withName(VALID_NAME_BOB).build(); | ||
assertFalse(ALICE.isSamePerson(editedAlice)); | ||
|
||
editedAlice = new PersonBuilder(ALICE).withDob("1000-01-01").build(); | ||
assertFalse(ALICE.isSamePerson(editedAlice)); | ||
|
||
editedAlice = new PersonBuilder(ALICE).withPhone("911").withEmail("[email protected]").build(); | ||
assertFalse(ALICE.isSamePerson(editedAlice)); | ||
|
||
// name differs in case, all other attributes same -> returns false | ||
Person editedBob = new PersonBuilder(BOB).withName(VALID_NAME_BOB.toLowerCase()).build(); | ||
assertFalse(BOB.isSamePerson(editedBob)); | ||
|