mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-24 20:33:06 +00:00
Fixing a wrong test (tks to Enrico Tassi)
This commit is contained in:
@@ -73,7 +73,7 @@ if lfs.symlinkattributes then
|
|||||||
-- Checking symbolic link information (does not work in Windows)
|
-- Checking symbolic link information (does not work in Windows)
|
||||||
assert (os.execute ("ln -s "..tmpfile.." _a_link_for_test_"))
|
assert (os.execute ("ln -s "..tmpfile.." _a_link_for_test_"))
|
||||||
assert (lfs.attributes"_a_link_for_test_".mode == "file")
|
assert (lfs.attributes"_a_link_for_test_".mode == "file")
|
||||||
assert (lfs.symlinkattributes"_a_link_for_test_" == "link")
|
assert (lfs.symlinkattributes"_a_link_for_test_".mode == "link")
|
||||||
assert (os.remove"_a_link_for_test_")
|
assert (os.remove"_a_link_for_test_")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user