diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-01-20 05:04:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 14:04:08 +0100 |
commit | 2b5841cd2b096624987d7cd1aa217088447076b7 (patch) | |
tree | 2543121f46b3a1796d5a9a62502490bb49a4f5a9 /tests/testament/tspecialpaths.nim | |
parent | 00d9176e91c4a44ed2ccd8dd19c29e9f3d0f6ace (diff) | |
download | Nim-2b5841cd2b096624987d7cd1aa217088447076b7.tar.gz |
fix testament regression: installed testament works again with testament r path (#16767)
* fix testament regression: installed testament works again with testament r path * fixup
Diffstat (limited to 'tests/testament/tspecialpaths.nim')
-rw-r--r-- | tests/testament/tspecialpaths.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testament/tspecialpaths.nim b/tests/testament/tspecialpaths.nim new file mode 100644 index 000000000..3c97dc88a --- /dev/null +++ b/tests/testament/tspecialpaths.nim @@ -0,0 +1,9 @@ +import stdtest/specialpaths +import std/os +block: # splitTestFile + doAssert splitTestFile("tests/fakedir/tfakename.nim") == ("fakedir", "tests/fakedir/tfakename.nim".unixToNativePath) + doAssert splitTestFile("/pathto/tests/fakedir/tfakename.nim") == ("fakedir", "/pathto/tests/fakedir/tfakename.nim".unixToNativePath) + doAssert splitTestFile(getCurrentDir() / "tests/fakedir/tfakename.nim") == ("fakedir", "tests/fakedir/tfakename.nim".unixToNativePath) + doAssert splitTestFile(getCurrentDir() / "sub/tests/fakedir/tfakename.nim") == ("fakedir", "sub/tests/fakedir/tfakename.nim".unixToNativePath) + doAssertRaises(AssertionDefect): discard splitTestFile("testsbad/fakedir/tfakename.nim") + doAssertRaises(AssertionDefect): discard splitTestFile("tests/tfakename.nim") |