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
eb43021
commit 5dd6605
Showing
4 changed files
with
5 additions
and
5 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
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 |
---|---|---|
|
@@ -41,9 +41,9 @@ public void isSamePerson() { | |
editedAlice = new PersonBuilder(ALICE).withPhone("911").withEmail("[email protected]").build(); | ||
assertFalse(ALICE.isSamePerson(editedAlice)); | ||
|
||
// name differs in case, all other attributes same -> returns false | ||
// name differs in case, all other attributes same -> returns true | ||
Person editedBob = new PersonBuilder(BOB).withName(VALID_NAME_BOB.toLowerCase()).build(); | ||
assertFalse(BOB.isSamePerson(editedBob)); | ||
assertTrue(BOB.isSamePerson(editedBob)); | ||
|
||
// name has trailing spaces, all other attributes same -> returns true | ||
String nameWithTrailingSpaces = VALID_NAME_BOB + " "; | ||
|