aboutsummaryrefslogtreecommitdiff
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, 4 insertions, 2 deletions
diff --git a/testes/files.lua b/testes/files.lua
index 78f962e5..be00bf3f 100644
--- a/testes/files.lua
+++ b/testes/files.lua
@@ -507,15 +507,17 @@ load((io.lines(file, 1)))()
507assert(_G.X == 4) 507assert(_G.X == 4)
508load((io.lines(file, 3)))() 508load((io.lines(file, 3)))()
509assert(_G.X == 8) 509assert(_G.X == 8)
510_G.X = nil
510 511
511print('+') 512print('+')
512 513
513local x1 = "string\n\n\\com \"\"''coisas [[estranhas]] ]]'" 514local x1 = "string\n\n\\com \"\"''coisas [[estranhas]] ]]'"
514io.output(file) 515io.output(file)
515assert(io.write(string.format("x2 = %q\n-- comment without ending EOS", x1))) 516assert(io.write(string.format("X2 = %q\n-- comment without ending EOS", x1)))
516io.close() 517io.close()
517assert(loadfile(file))() 518assert(loadfile(file))()
518assert(x1 == x2) 519assert(x1 == _G.X2)
520_G.X2 = nil
519print('+') 521print('+')
520assert(os.remove(file)) 522assert(os.remove(file))
521assert(not os.remove(file)) 523assert(not os.remove(file))