aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 4c09020..882838b 100644
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -80,10 +80,10 @@ end
80if lfs.setmode then 80if lfs.setmode then
81 -- Checking text/binary modes (works only in Windows) 81 -- Checking text/binary modes (works only in Windows)
82 local f = io.open(tmpfile, "w") 82 local f = io.open(tmpfile, "w")
83 local mode = lfs.setmode(f, "binary") 83 local result, mode = lfs.setmode(f, "binary")
84 assert(mode == "text") 84 assert(result and mode == "text")
85 mode = lfs.setmode(f, "text") 85 result, mode = lfs.setmode(f, "text")
86 assert(mode == "binary") 86 assert(result and mode == "binary")
87 f:close() 87 f:close()
88end 88end
89 89