From c99500a4de8b02c76a95bf8dc4c5de42dd7cc49d Mon Sep 17 00:00:00 2001 From: Grump Date: Fri, 8 May 2020 10:31:27 +0200 Subject: [PATCH] add test for removal of nonexistent file --- test/main.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/main.lua b/test/main.lua index 91df0c0..f024244 100644 --- a/test/main.lua +++ b/test/main.lua @@ -200,6 +200,8 @@ function test_fs_remove() equals(love.filesystem.getInfo('data/test1/test2'), nil) notFailed(fs.remove('data/test1')) equals(love.filesystem.getInfo('data/test1'), nil) + + hasFailed("Could not remove does_not_exist", fs.remove('does_not_exist')) end -----------------------------------------------------------------------------