Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nixonwidjaja committed Nov 2, 2023
1 parent 0839cfd commit 5686dac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/seedu/address/model/person/MonthTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

import org.junit.jupiter.api.Test;
Expand All @@ -17,6 +18,8 @@ public class MonthTest {
public void execute_monthEqualsSuccess() {
Month testMonth = new Month(1);
assertEquals(new Month(Integer.parseInt(VALID_MONTH)), testMonth);
assertEquals(testMonth, testMonth);
assertNotEquals(testMonth, null);
}

@Test
Expand Down

0 comments on commit 5686dac

Please sign in to comment.