summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/tospaths.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/stdlib/tospaths.nim b/tests/stdlib/tospaths.nim
index 563584c4c..ce00b5a95 100644
--- a/tests/stdlib/tospaths.nim
+++ b/tests/stdlib/tospaths.nim
@@ -92,3 +92,8 @@ doAssert relativePath("/Users///me/bar//z.nim", "//Users/", '/') == "me/bar/z.ni
 doAssert relativePath("/Users/me/bar/z.nim", "/Users/me", '/') == "bar/z.nim"
 doAssert relativePath("", "/users/moo", '/') == ""
 doAssert relativePath("foo", "", '/') == "foo"
+
+doAssert joinPath("usr", "") == unixToNativePath"usr/"
+doAssert joinPath("", "lib") == "lib"
+doAssert joinPath("", "/lib") == unixToNativePath"/lib"
+doAssert joinPath("usr/", "/lib") == unixToNativePath"usr/lib"