From b839cf85148abac9cb0bff5af013bb6ac7203824 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 9 Mar 2022 23:52:26 +0800 Subject: fix dir --- tests/modules/path/test.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/modules/path/test.lua') 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) -- cgit v1.3.1