cache file size, cleanup

This commit is contained in:
Grump
2020-05-12 15:03:16 +02:00
parent 40a4cb62d3
commit 2b1e143f9a
2 changed files with 100 additions and 102 deletions

View File

@@ -289,9 +289,11 @@ function test_File_write()
local f = fs.newFile('data/write.test')
notFailed(f:open('w'))
notFailed(f:write('hello'))
equals(f:getSize(), 5)
f:close()
f:open('a')
notFailed(f:write('world'))
equals(f:getSize(), 10)
f:close()
notFailed(f:open('r'))