Skip to content

Commit b7607a5

Browse files
committed
Merge branch 'Fruit-Punch-Samurai-master' into koans-full-update
2 parents 11d62d4 + b469a4e commit b7607a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Conventions/Comparison/test/tests.kt

+7
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,11 @@ class TestComparison {
1717
val second = MyDate(2014, 7, 11)
1818
Assert.assertTrue(errorMessage("compareTo") + "$first should go after $second", first > second)
1919
}
20+
21+
@Test(timeout = 1000)
22+
fun testSame() {
23+
val first = MyDate(2014, 7, 11)
24+
val second = MyDate(2014, 7, 11)
25+
Assert.assertTrue(errorMessage("compareTo") + "$first should be the same as $second", first == second)
26+
}
2027
}

0 commit comments

Comments
 (0)