diff options
Diffstat (limited to 'tests/test_path.lua')
-rw-r--r-- | tests/test_path.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/test_path.lua b/tests/test_path.lua index 944b930..ab5531b 100644 --- a/tests/test_path.lua +++ b/tests/test_path.lua @@ -17,7 +17,15 @@ test.isequal(expected, path.getabsolute("a/b/c")) end + function T.path.getabsolute_RemovesDotDots_OnWindowsAbsolute() + test.isequal("c:/ProjectB/bin", path.getabsolute("c:/ProjectA/../ProjectB/bin")) + end + function T.path.getabsolute_RemovesDotDots_OnPosixAbsolute() + test.isequal("/ProjectB/bin", path.getabsolute("/ProjectA/../ProjectB/bin")) + end + + -- -- path.getbasename() tests -- @@ -46,7 +54,7 @@ function T.path.getdirectory_ReturnsRootPath_OnRootPathOnly() test.isequal("/", path.getdirectory("/filename.ext")) end - + -- -- path.getextension() tests |