summaryrefslogtreecommitdiff
path: root/tests/modules/path/test.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-09 23:52:26 +0800
committerruki <[email protected]>2022-03-09 23:52:26 +0800
commitb839cf85148abac9cb0bff5af013bb6ac7203824 (patch)
treeda2279effa483b40e96233e1d371303bb124696d /tests/modules/path/test.lua
parent0aca668c37f645f7b8cdac44d3fb236c8f34196b (diff)
fix dir
Diffstat (limited to 'tests/modules/path/test.lua')
-rw-r--r--tests/modules/path/test.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/modules/path/test.lua b/tests/modules/path/test.lua
index 05a5a0b40..8954e64a3 100644
--- a/tests/modules/path/test.lua
+++ b/tests/modules/path/test.lua
@@ -37,6 +37,7 @@ end
function test_directory(t)
t:are_equal(path.directory(""), nil)
t:are_equal(path.directory("."), nil)
+ t:are_equal(path.directory("foo"), ".")
if is_host("windows") then
t:are_equal(path.directory("c:"), nil)
t:are_equal(path.directory("c:\\"), nil)