diff --git a/test/iii_conventions/N25ComparisonKtTest.kt b/test/iii_conventions/N25ComparisonKtTest.kt index 4031bc681..2592c5fe3 100644 --- a/test/iii_conventions/N25ComparisonKtTest.kt +++ b/test/iii_conventions/N25ComparisonKtTest.kt @@ -22,6 +22,12 @@ class N25ComparisonKtTest { assertTrue("The date ${first.s} should be after ${second.s}", first > second) } + @Test fun testMaxJanuaryBeforeMaxFebruaryNotLeapYear() { + val first = MyDate(2015, 1, 31) + val second = MyDate(2015, 2, 28) + assertTrue("The date ${first.s} should be before ${second.s}", first < second) + } + /* If you declare 'compareTo' as an extension function, remove this one to make the code compile */ operator fun MyDate.compareTo(other: MyDate): Int = todoTask25() } \ No newline at end of file