on a177213 help sign in
prybar/tests/clojure/initialize_repl_with_script.exp
21 lines 339 B history raw
1#!/usr/bin/expect -f
3# ignore ANSI escape sequences
4set _ "(?:.*?)"
6set timeout -1
7spawn ./prybar-clojure -i ./test_files/hello.clj
8match_max 100000
9expect -re "^${_}hello${_}\r
10${_}Clojure${_}\r
11${_}--> $"
13# b is defined in ./test_files/hello.clj
14send -- "b\r"
15expect -re "^${_}b${_}\r
16${_}42${_}\r
17${_}--> $"
19send -- ""
20expect eof