Skip to content

Commit 2336c2e

Browse files
committed
Added more windows path tests
1 parent 9a2e4f1 commit 2336c2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/common/test/files/SmokeFileTestWindows.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ class SmokeFileTestWindows {
1111
@Test
1212
fun isAbsolute() {
1313
if (!isWindows) return
14+
assertFalse(Path("C:").isAbsolute)
1415
assertTrue(Path("C:\\").isAbsolute)
1516
assertTrue(Path("C:/").isAbsolute)
1617
assertTrue(Path("C:/../").isAbsolute)
@@ -22,6 +23,7 @@ class SmokeFileTestWindows {
2223
@Test
2324
fun getParent() {
2425
if (!isWindows) return
26+
assertNull(Path("C:").parent)
2527
assertNull(Path("C:\\").parent)
2628
assertNull(Path("a\\b").parent?.parent)
2729
assertEquals(Path("C:\\"), Path("C:\\Program Files").parent)

0 commit comments

Comments
 (0)