summaryrefslogtreecommitdiff
path: root/testes/files.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/files.lua')
-rw-r--r--testes/files.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/testes/files.lua b/testes/files.lua
index a11c5e61..e68eb9b8 100644
--- a/testes/files.lua
+++ b/testes/files.lua
@@ -125,7 +125,7 @@ do
-- closing file by scope
local F = nil
do
- local scoped f = assert(io.open(file, "w"))
+ local *toclose f = assert(io.open(file, "w"))
F = f
end
assert(tostring(F) == "file (closed)")
@@ -135,7 +135,7 @@ assert(os.remove(file))
do
-- test writing/reading numbers
- local scoped f = assert(io.open(file, "w"))
+ local *toclose f = assert(io.open(file, "w"))
f:write(maxint, '\n')
f:write(string.format("0X%x\n", maxint))
f:write("0xABCp-3", '\n')
@@ -158,7 +158,7 @@ assert(os.remove(file))
-- testing multiple arguments to io.read
do
- local scoped f = assert(io.open(file, "w"))
+ local *toclose f = assert(io.open(file, "w"))
f:write[[
a line
another line