Skip to content

Commit 0430ebf

Browse files
committed
Add a test case for paths relative to CWD
1 parent 103230a commit 0430ebf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/common/test/files/SmokeFileTest.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,10 @@ class SmokeFileTest {
356356
SystemFileSystem.delete(Path(root, "c", "d"))
357357
SystemFileSystem.delete(Path(root, "c"))
358358
}
359+
360+
val cwd = SystemFileSystem.resolve(Path("."))
361+
val parentRel = Path("..")
362+
assertEquals(cwd.parent, SystemFileSystem.resolve(parentRel))
359363
}
360364

361365
private fun constructAbsolutePath(vararg parts: String): String {

0 commit comments

Comments
 (0)