diff options
| author | 2024-10-15 11:40:26 -0400 | |
|---|---|---|
| committer | 2024-10-15 11:40:26 -0400 | |
| commit | 6295ae273d4a15b60b580344b986986d004c22ad (patch) | |
| tree | ea8eb39136ab6f128a5388ad656c0b899a91997d /test/history_test.lua | |
| parent | v0.2.3 (diff) | |
updated help messages
Diffstat (limited to '')
| -rw-r--r-- | test/history_test.lua | 6 |
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() |
