Fix tests to acount for platform differences.

This commit is contained in:
James Roseborough
2012-09-30 16:51:57 +00:00
parent 8b50a3b36b
commit 17f233adf8
2 changed files with 4 additions and 1 deletions

View File

@@ -64,11 +64,14 @@ if platform ~= 'JME' then
end end
-- write a few lines, including a non-terminating one -- write a few lines, including a non-terminating one
files = {}
f = io.open("abc.txt","w") f = io.open("abc.txt","w")
print( 'f', io.type(f) ) print( 'f.type', io.type(f) )
print( 'f', f )
print( 'write', f:write("line one\nline two\n\nafter blank line\nunterminated line") ) print( 'write', f:write("line one\nline two\n\nafter blank line\nunterminated line") )
print( 'type(f)', io.type(f) ) print( 'type(f)', io.type(f) )
print( 'close', f:close() ) print( 'close', f:close() )
files = {}
-- read using io.lines() -- read using io.lines()
for l in io.lines("abc.txt") do for l in io.lines("abc.txt") do

Binary file not shown.