From 68ce253ca289030922581b10a34094750c34d729 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Fri, 27 Sep 2024 09:33:01 -0400 Subject: added exit api function --- test/filecheck_test.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/filecheck_test.lua') diff --git a/test/filecheck_test.lua b/test/filecheck_test.lua index af0c130..9a2ffd7 100644 --- a/test/filecheck_test.lua +++ b/test/filecheck_test.lua @@ -19,28 +19,33 @@ if lush.exists("~/.lush/scripts/example.lua") then print("exists test passed ✅\n") else print("exists test failed ❌\n") + lush.exit() end if lush.isFile("~/.lush/scripts/example.lua") then print("isFile test passed ✅\n") else print("isFile test failed ❌\n") + lush.exit() end if not lush.isDirectory("~/.lush/scripts/example.lua") then print("isDirectory test passed ✅\n") else print("isDirectory test failed ❌\n") + lush.exit() end if lush.isReadable("~/.lush/scripts/example.lua") then print("isReadable test passed ✅\n") else print("isReadable test failed ❌\n") + lush.exit() end if lush.isWriteable("~/.lush/scripts/example.lua") then print("isWriteable test passed ✅\n") else print("isWriteable test failed ❌\n") + lush.exit() end -- cgit v1.2.3-59-g8ed1b