Skip to content

Commit

Permalink
Add test for Event
Browse files Browse the repository at this point in the history
  • Loading branch information
DanzaSeah committed Oct 24, 2024
1 parent 73cef60 commit ca8d9a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/seedu/address/model/task/EventTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ public void equals_sameEvent_returnsTrue() {
assertTrue(event1.equals(event2));
}

@Test
public void equals_nonEvent_returnsFalse() {
Event event1 = new Event(VALID_DESCRIPTION, VALID_FROM_DATE, VALID_TO_DATE);
Todo event2 = new Todo(VALID_DESCRIPTION);
assertFalse(event1.equals(event2));
}

@Test
public void equals_differentEvent_returnsFalse() {
Event event1 = new Event(VALID_DESCRIPTION, VALID_FROM_DATE, VALID_TO_DATE);
Expand Down

0 comments on commit ca8d9a6

Please sign in to comment.