some refactoring, better error reporting in File:tell

This commit is contained in:
Grump
2020-05-28 14:57:37 +02:00
parent 81c8d8d3bf
commit ebf98b4494
2 changed files with 18 additions and 10 deletions

View File

@@ -334,6 +334,8 @@ end
function test_File_tell()
local f = fs.newFile(testFile1)
local ok, err = f:tell()
equals(ok, nil)
f:open('r')
f:read(172)
equals(f:tell(), 172)