Skip to content

Commit 816f2af

Browse files
#430: Add correctSymlinkTest
1 parent 27d7306 commit 816f2af

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

core/linux/test/TimeZoneNativeTest.kt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*
2+
* Copyright 2019-2025 JetBrains s.r.o. and contributors.
3+
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
4+
*/
5+
6+
package kotlinx.datetime.test
7+
8+
import kotlinx.datetime.TimeZone
9+
import kotlinx.datetime.internal.root
10+
import kotlin.test.Test
11+
import kotlin.test.assertEquals
12+
13+
class TimeZoneNativeTest {
14+
15+
@Test
16+
fun correctSymlinkTest() {
17+
root = "./core/linux/test/time-zone-native-test-resources/correct-symlink/"
18+
19+
val tz = TimeZone.currentSystemDefault()
20+
assertEquals(TimeZone.of("Europe/Oslo"), tz)
21+
}
22+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../usr/share/zoneinfo/Europe/Oslo

0 commit comments

Comments
 (0)