diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-02-22 00:07:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 09:07:53 +0100 |
commit | a43583f9c8771c07436ee4175e216ab802ff6165 (patch) | |
tree | a1703be1208cd97797c8e777cb710db3fcbae302 /tests/js | |
parent | 1276e386fe68ab2ac359657297a1a2c570d7aefb (diff) | |
download | Nim-a43583f9c8771c07436ee4175e216ab802ff6165.tar.gz |
relativePath("foo", "foo") is now ".", not "" (#13452)
Diffstat (limited to 'tests/js')
-rw-r--r-- | tests/js/tos.nim | 7 |
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" |