summary refs log tree commit diff stats
path: root/tests/js
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-02-22 00:07:53 -0800
committerGitHub <noreply@github.com>2020-02-22 09:07:53 +0100
commita43583f9c8771c07436ee4175e216ab802ff6165 (patch)
treea1703be1208cd97797c8e777cb710db3fcbae302 /tests/js
parent1276e386fe68ab2ac359657297a1a2c570d7aefb (diff)
downloadNim-a43583f9c8771c07436ee4175e216ab802ff6165.tar.gz
relativePath("foo", "foo") is now ".", not "" (#13452)
Diffstat (limited to 'tests/js')
-rw-r--r--tests/js/tos.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/js/tos.nim b/tests/js/tos.nim
new file mode 100644
index 000000000..7395a0ad7
--- /dev/null
+++ b/tests/js/tos.nim
@@ -0,0 +1,7 @@
+static: doAssert defined(nodejs)
+
+import os
+
+block:
+  doAssert "./foo//./bar/".normalizedPath == "foo/bar"
+  doAssert relativePath(".//foo/bar", "foo") == "bar"