Skip to content

Commit

Permalink
Add test back
Browse files Browse the repository at this point in the history
  • Loading branch information
potaotototo committed Oct 31, 2024
1 parent 7d3b8b0 commit c9a6d23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/java/tuteez/model/person/lesson/LessonTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,15 @@ public void equals() {
Lesson l1 = new Lesson("Friday 1300-1400");
Lesson l2 = new Lesson("Friday 1300-1400");
Lesson l3 = new Lesson("friday 1300-1400");
Lesson l4 = new Lesson("Saturday 1300-1400");
Lesson l5 = new Lesson("Friday 1300-1430");

Assertions.assertNotEquals(l1, new Object());
assertEquals(l1, l1);
assertEquals(l1, l2);
assertEquals(l2, l3);
assertFalse(l1.equals(l4));
assertFalse(l1.equals(l5));
}

@Test
Expand Down

0 comments on commit c9a6d23

Please sign in to comment.