Skip to content

Commit 972231d

Browse files
committed
Test that 60 seconds and 24 hours are not parsed for Instant
1 parent 184a377 commit 972231d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/common/test/InstantTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ class InstantTest {
8585
assertEquals(seconds.toLong() * 1000 + nanos / 1000000, instant.toEpochMilliseconds())
8686
}
8787

88-
// TODO: assertInvalidFormat { Instant.parse("1970-01-01T23:59:60Z")} // fails on Native
88+
assertInvalidFormat { Instant.parse("1970-01-01T23:59:60Z")}
89+
assertInvalidFormat { Instant.parse("1970-01-01T24:00:00Z")}
8990
assertInvalidFormat { Instant.parse("x") }
9091
assertInvalidFormat { Instant.parse("12020-12-31T23:59:59.000000000Z") }
9192
// this string represents an Instant that is currently larger than Instant.MAX any of the implementations:

0 commit comments

Comments
 (0)