diff options
Diffstat (limited to 'src/jsTest/kotlin/io/PathTest.kt')
-rw-r--r-- | src/jsTest/kotlin/io/PathTest.kt | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/jsTest/kotlin/io/PathTest.kt b/src/jsTest/kotlin/io/PathTest.kt deleted file mode 100644 index 73667a6..0000000 --- a/src/jsTest/kotlin/io/PathTest.kt +++ /dev/null @@ -1,31 +0,0 @@ -package io - -import io.kotest.core.spec.style.FunSpec -import io.kotest.matchers.booleans.shouldBeFalse -import io.kotest.matchers.types.shouldBeTypeOf - -class PathTest : FunSpec({ - val homeDir = Path.of("/home") as Path.Absolute - test("recognize relative paths as such") { - listOf( - Path.of("a/b"), - Path.of("."), - Path.of("a", "b"), - Path.ofShell("a/b", userHome = homeDir), - Path.ofShell(".", userHome = homeDir), - Path.ofShell("a", "b", userHome = homeDir), - Path.ofShell(listOf("a", "b"), userHome = homeDir), - ).forEach { - it.shouldBeTypeOf<Path.Relative>() - } - } - test("recognize absolute paths as such") { - listOf( - Path.of("/a/b"), - Path.of("/"), - Path.ofShell("/b/c", userHome = homeDir), - ).forEach { - it.shouldBeTypeOf<Path.Absolute>() - } - } -}) |