From 9dc1673035919d1af7f191a273dd78b61608e908 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Wed, 27 Jan 2016 18:39:43 +0100 Subject: [PATCH] fixed test script, check needs to be added so that you cannot remove history items outside the list via index --- test.icl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test.icl b/test.icl index 18e1292..6dd1f5a 100644 --- a/test.icl +++ b/test.icl @@ -13,8 +13,10 @@ Start w #! w = setReadLineName "Test program" w #! w = usingHistory w #! (_, w) = readHistory "readline.history" w -#! w = addHistory "testentry" w -#! w = addHistoryTime "time" w +#! w = addHistory "testentry1" w +#! w = addHistoryTime "time1" w +#! w = addHistory "testentry2" w +#! w = addHistoryTime "time2" w #! (hi, w) = removeHistory 1 w #! (hy, w) = replaceHistoryEntry 1 "replacement" w #! (s, w) = readLine "first prompt: " True w -- 2.20.1