Skip to content

Commit a92737b

Browse files
committed
Fix a test
1 parent 188f2a9 commit a92737b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/tzfile/test/TimeZoneRulesTest.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ class TimeZoneRulesTest {
2525
assertTrue(infoAtDstStart is OffsetInfo.Gap, "Expected Gap, got $infoAtDstStart")
2626
val dstEndTime = LocalDateTime(2040, 10, 28, 3, 0)
2727
val infoAtDstEnd = rules.infoAtDatetime(dstEndTime)
28-
assertTrue(infoAtDstEnd is OffsetInfo.Overlap, "Expected Overlap, got $infoAtDstEnd")
28+
assertTrue(infoAtDstEnd is OffsetInfo.Regular, "Expected Regular, got $infoAtDstEnd")
29+
val timeBeforeDstEnd = LocalDateTime(2040, 10, 28, 2, 59, 59, 999_999_999)
30+
val infoBeforeDstEnd = rules.infoAtDatetime(timeBeforeDstEnd)
31+
assertTrue(infoAtDstEnd is OffsetInfo.Overlap, "Expected Overlap, got $infoBeforeDstEnd")
2932
}
3033

3134
@Test

0 commit comments

Comments
 (0)