Skip to content

Commit 2964b49

Browse files
#430: Add fallsBackToUTC test
1 parent 901cc68 commit 2964b49

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

core/linux/test/TimeZoneNativeTest.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,12 @@ class TimeZoneNativeTest {
1919
val tz = TimeZone.currentSystemDefault()
2020
assertEquals(TimeZone.of("Europe/Oslo"), tz)
2121
}
22+
23+
@Test
24+
fun fallsBackToUTC() {
25+
root = "./core/linux/test/time-zone-native-test-resources/missing-localtime/"
26+
27+
val tz = TimeZone.currentSystemDefault()
28+
assertEquals(TimeZone.UTC, tz)
29+
}
2230
}

0 commit comments

Comments
 (0)