Skip to content

Commit ca34c0a

Browse files
committed
Test that 60 seconds and 24 hours are not parsed for Instant
1 parent 8c77c95 commit ca34c0a

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
@@ -86,7 +86,8 @@ class InstantTest {
8686
assertEquals(seconds.toLong() * 1000 + nanos / 1000000, instant.toEpochMilliseconds())
8787
}
8888

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

0 commit comments

Comments
 (0)