Skip to content

Commit

Permalink
Add a test case for paths relative to CWD
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhinkin committed Oct 12, 2023
1 parent 103230a commit 0430ebf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/common/test/files/SmokeFileTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,10 @@ class SmokeFileTest {
SystemFileSystem.delete(Path(root, "c", "d"))
SystemFileSystem.delete(Path(root, "c"))
}

val cwd = SystemFileSystem.resolve(Path("."))
val parentRel = Path("..")
assertEquals(cwd.parent, SystemFileSystem.resolve(parentRel))
}

private fun constructAbsolutePath(vararg parts: String): String {
Expand Down

0 comments on commit 0430ebf

Please sign in to comment.