mirror of
https://github.com/lunarmodules/luafilesystem.git
synced 2026-07-25 13:13:07 +00:00
Fixed bug in the Windows tests (patch by Shmuel Zeigerman)
This commit is contained in:
@@ -80,10 +80,10 @@ end
|
|||||||
if lfs.setmode then
|
if lfs.setmode then
|
||||||
-- Checking text/binary modes (works only in Windows)
|
-- Checking text/binary modes (works only in Windows)
|
||||||
local f = io.open(tmpfile, "w")
|
local f = io.open(tmpfile, "w")
|
||||||
local mode = lfs.setmode(f, "binary")
|
local result, mode = lfs.setmode(f, "binary")
|
||||||
assert(mode == "text")
|
assert(result and mode == "text")
|
||||||
mode = lfs.setmode(f, "text")
|
result, mode = lfs.setmode(f, "text")
|
||||||
assert(mode == "binary")
|
assert(result and mode == "binary")
|
||||||
f:close()
|
f:close()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user