mirror of
https://github.com/EngineerSmith/nativefs.git
synced 2025-11-08 23:15:02 +00:00
add test for removal of nonexistent file
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user