summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-12-13 16:18:43 +0100
committerAraq <rumpf_a@web.de>2018-12-13 16:19:00 +0100
commit5b39c7aca91c1d20eb81425cf8f3854876aed475 (patch)
treeff4943dca92804db14fb80bebdb3d0c7787dfe46 /tests/stdlib
parent5d34dec97d8ba330a9614d331504c0bb2e867fba (diff)
downloadNim-5b39c7aca91c1d20eb81425cf8f3854876aed475.tar.gz
fixes joinPath regressions
Diffstat (limited to 'tests/stdlib')
-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"