Skip to content

Commit

Permalink
Add missing testcases to person
Browse files Browse the repository at this point in the history
  • Loading branch information
ReflectiveObsidian committed Mar 11, 2024
1 parent b3e0ff8 commit e517c27
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/java/seedu/address/model/person/PersonTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,21 @@ public void toStringMethod() {
+ ", email=" + ALICE.getEmail() + ", address=" + ALICE.getAddress() + ", tags=" + ALICE.getTags() + "}";
assertEquals(expected, ALICE.toString());
}
@Test
public void getName() {
assertEquals(VALID_NAME_BOB, BOB.getName().toString());
}
@Test
public void getPhone() {
assertEquals(VALID_PHONE_BOB, BOB.getPhone().toString());
}
@Test
public void getEmail() {
assertEquals(VALID_EMAIL_BOB, BOB.getEmail().toString());
}
@Test
public void getAddress() {
assertEquals(VALID_ADDRESS_BOB, BOB.getAddress().toString());
}

}

0 comments on commit e517c27

Please sign in to comment.