add a couple more tests
commit138456eff43021158e07a361929b36367fcd3554
authorAmjad Masad <amjad.masad@gmail.com>
dateTue 25 Aug 2020, 23:46 (6 years ago)
parent63af75d
tests/nodejs/eval_code.expnew file+8
@@ -0,0 +1,8 @@
1+#!/usr/bin/expect -f
2+
3+set timeout -1
4+spawn ./prybar-nodejs -q -e 1+1
5+match_max 100000
6+expect -exact "2\r
7+"
8+expect eof
tests/nodejs/printing.expnew file+13
@@ -0,0 +1,13 @@
1+#!/usr/bin/expect -f
2+
3+set timeout -1
4+spawn ./prybar-nodejs -i -q
5+match_max 100000
6+expect -exact "\[1G\[0J--> \[5G"
7+send -- "console.log('x')\r"
8+expect -exact "console.log('x')\r\r
9+x\r
10+\[90mundefined\[39m\r
11+\[1G\[0J--> "
12+send -- ""
13+expect eof