mirror of
https://github.com/EngineerSmith/nativefs.git
synced 2025-11-08 23:15:02 +00:00
cache file size, cleanup
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user