update
[CleanReadLine.git] / test.icl
index 26ced3c..729c126 100644 (file)
--- a/test.icl
+++ b/test.icl
@@ -3,11 +3,16 @@ module test
 import StdEnv
 import ReadLine
 
-Start :: *World -> (String, *World)
+Start :: *World -> (Int, String, *World)
 Start w
 # (f, w) = stdio w
+#! w = setReadLineName "Test program" w
+#! w = usingHistory w
 #! (_, w) = readHistory "readline.history" w
+#! w = addHistory "testentry" w
 #! (s, w) = readLine "first prompt: " True w
 #! (s, w) = readLine "uparrow should word with history: " False w
 #! (_, w) = writeHistory "readline.history" w
-= (s, w)
+#! (i, w) = historySearch "testentry" -1 w
+//#! w = clearHistory w
+= (i, s, w)