Introduce ClosedComparableRange interface which inherits ClosedRange to provide special comparison operation for double and float.
This commit is contained in:
@@ -84,6 +84,8 @@ class CoercionTest {
|
||||
|
||||
assertFails { 1.0.coerceIn(1.0, 0.0) }
|
||||
assertFails { 1.0.coerceIn(1.0..0.0) }
|
||||
assertTrue(0.0 == 0.0.coerceIn(0.0, -0.0))
|
||||
assertTrue(0.0 == 0.0.coerceIn(0.0..-0.0))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user