We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 11d62d4 + b469a4e commit b7607a5Copy full SHA for b7607a5
Conventions/Comparison/test/tests.kt
@@ -17,4 +17,11 @@ class TestComparison {
17
val second = MyDate(2014, 7, 11)
18
Assert.assertTrue(errorMessage("compareTo") + "$first should go after $second", first > second)
19
}
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
+ }
27
0 commit comments