forked from AY2324S1-CS2103T-W15-4/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
fb4d550
commit 31e86f3
Showing
6 changed files
with
14 additions
and
10 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
2 changes: 1 addition & 1 deletion
2
src/test/java/seedu/address/logic/parser/RemarkCommandParserTest.java
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 |
---|---|---|
|
@@ -32,10 +32,10 @@ public void isSamePerson() { | |
// null -> returns false | ||
assertFalse(ALICE.isSamePerson(null)); | ||
|
||
// same name, all other attributes different -> returns true | ||
// same name, all other attributes different -> returns false | ||
Person editedAlice = new PersonBuilder(ALICE).withPhone(VALID_PHONE_BOB).withEmail(VALID_EMAIL_BOB) | ||
.withAddress(VALID_ADDRESS_BOB).withTags(VALID_TAG_HUSBAND).build(); | ||
assertTrue(ALICE.isSamePerson(editedAlice)); | ||
assertFalse(ALICE.isSamePerson(editedAlice)); | ||
|
||
// different name, all other attributes same -> returns false | ||
editedAlice = new PersonBuilder(ALICE).withName(VALID_NAME_BOB).build(); | ||
|
@@ -92,8 +92,8 @@ public void equals() { | |
|
||
@Test | ||
public void toStringMethod() { | ||
String expected = Person.class.getCanonicalName() + "{name=" + ALICE.getName() + ", phone=" + ALICE.getPhone() | ||
+ ", email=" + ALICE.getEmail() + ", address=" + ALICE.getAddress() + ", tags=" + ALICE.getTags() + "}"; | ||
String expected = "Alice Pauline Phone: 94351253 Email: [email protected] Address: 123," | ||
+ " Jurong West Ave 6, #08-111 Remark: She likes aardvarks. Tags: [friends]"; | ||
assertEquals(expected, ALICE.toString()); | ||
} | ||
} |