diff options
Diffstat (limited to 'testes/files.lua')
-rw-r--r-- | testes/files.lua | 6 |
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)))() | |||
507 | assert(_G.X == 4) | 507 | assert(_G.X == 4) |
508 | load((io.lines(file, 3)))() | 508 | load((io.lines(file, 3)))() |
509 | assert(_G.X == 8) | 509 | assert(_G.X == 8) |
510 | _G.X = nil | ||
510 | 511 | ||
511 | print('+') | 512 | print('+') |
512 | 513 | ||
513 | local x1 = "string\n\n\\com \"\"''coisas [[estranhas]] ]]'" | 514 | local x1 = "string\n\n\\com \"\"''coisas [[estranhas]] ]]'" |
514 | io.output(file) | 515 | io.output(file) |
515 | assert(io.write(string.format("x2 = %q\n-- comment without ending EOS", x1))) | 516 | assert(io.write(string.format("X2 = %q\n-- comment without ending EOS", x1))) |
516 | io.close() | 517 | io.close() |
517 | assert(loadfile(file))() | 518 | assert(loadfile(file))() |
518 | assert(x1 == x2) | 519 | assert(x1 == _G.X2) |
520 | _G.X2 = nil | ||
519 | print('+') | 521 | print('+') |
520 | assert(os.remove(file)) | 522 | assert(os.remove(file)) |
521 | assert(not os.remove(file)) | 523 | assert(not os.remove(file)) |