add test for removal of nonexistent file

This commit is contained in:
Grump
2020-05-08 10:31:27 +02:00
parent 1ebad27d4c
commit c99500a4de

View File

@@ -200,6 +200,8 @@ function test_fs_remove()
equals(love.filesystem.getInfo('data/test1/test2'), nil) equals(love.filesystem.getInfo('data/test1/test2'), nil)
notFailed(fs.remove('data/test1')) notFailed(fs.remove('data/test1'))
equals(love.filesystem.getInfo('data/test1'), nil) equals(love.filesystem.getInfo('data/test1'), nil)
hasFailed("Could not remove does_not_exist", fs.remove('does_not_exist'))
end end
----------------------------------------------------------------------------- -----------------------------------------------------------------------------