From 5686dac42bf4ea711c765c8087df8c372ef58563 Mon Sep 17 00:00:00 2001 From: nixonwidjaja Date: Fri, 3 Nov 2023 00:11:04 +0800 Subject: [PATCH] Add tests --- src/test/java/seedu/address/model/person/MonthTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/java/seedu/address/model/person/MonthTest.java b/src/test/java/seedu/address/model/person/MonthTest.java index 68d05daf5b3..85ed5a71b33 100644 --- a/src/test/java/seedu/address/model/person/MonthTest.java +++ b/src/test/java/seedu/address/model/person/MonthTest.java @@ -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; @@ -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