aboutsummaryrefslogtreecommitdiffstats
path: root/test/history_test.lua
diff options
context:
space:
mode:
authorGravatar BanceDev 2024-10-15 11:40:26 -0400
committerGravatar BanceDev 2024-10-15 11:40:26 -0400
commit6295ae273d4a15b60b580344b986986d004c22ad (patch)
treeea8eb39136ab6f128a5388ad656c0b899a91997d /test/history_test.lua
parentv0.2.3 (diff)
updated help messages
Diffstat (limited to '')
-rw-r--r--test/history_test.lua6
1 files changed, 5 insertions, 1 deletions
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()