Skip to content

Commit

Permalink
Fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhalanskyjb committed Jul 9, 2024
1 parent 188f2a9 commit a92737b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/tzfile/test/TimeZoneRulesTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ class TimeZoneRulesTest {
assertTrue(infoAtDstStart is OffsetInfo.Gap, "Expected Gap, got $infoAtDstStart")
val dstEndTime = LocalDateTime(2040, 10, 28, 3, 0)
val infoAtDstEnd = rules.infoAtDatetime(dstEndTime)
assertTrue(infoAtDstEnd is OffsetInfo.Overlap, "Expected Overlap, got $infoAtDstEnd")
assertTrue(infoAtDstEnd is OffsetInfo.Regular, "Expected Regular, got $infoAtDstEnd")
val timeBeforeDstEnd = LocalDateTime(2040, 10, 28, 2, 59, 59, 999_999_999)
val infoBeforeDstEnd = rules.infoAtDatetime(timeBeforeDstEnd)
assertTrue(infoAtDstEnd is OffsetInfo.Overlap, "Expected Overlap, got $infoBeforeDstEnd")
}

@Test
Expand Down

0 comments on commit a92737b

Please sign in to comment.