From 6295ae273d4a15b60b580344b986986d004c22ad Mon Sep 17 00:00:00 2001 From: BanceDev Date: Tue, 15 Oct 2024 11:40:26 -0400 Subject: updated help messages --- test/history_test.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/history_test.lua') diff --git a/test/history_test.lua b/test/history_test.lua index 50be957..621f22b 100644 --- a/test/history_test.lua +++ b/test/history_test.lua @@ -26,7 +26,11 @@ if lush.getHistory(1) == lush.lastHistory() then if lush.getHistory(9) == 'cat "example.lua" | grep "hello" | sort | uniq' then -- ensure args history is stored correctly if lush.getHistory(11) == "args_test.lua testarg1 testarg2 testarg3" then - print("getHistory test passed ✅\n") + if lush.getHistory(0) == nil and lush.getHistory(-1) == nil then + print("getHistory test passed ✅\n") + else + print("getHistory test failed at zero and negative history ❌\n") + end else print("getHistory test failed at args history ❌\n") lush.exit() -- cgit v1.2.3-59-g8ed1b