Skip to content

Commit

Permalink
Add test from failing fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Haraldsen committed Jan 23, 2024
1 parent 845d514 commit 8381d79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/java/com/ethlo/time/CorrectnessTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -470,4 +470,10 @@ void testTemporalAccessorNanos()

assertThat(parsed.getLong(ChronoField.NANO_OF_SECOND)).isEqualTo(987654321);
}

@Test
void testParseLeapSecondWhenNoTimeOffsetPresent()
{
ITU.parseLenient("3011-10-02T22:00:60.003");
}
}

0 comments on commit 8381d79

Please sign in to comment.