From 3c99fff83e7224ebe348c4840e13444e74f185a3 Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Mon, 4 May 2020 23:27:39 +1000 Subject: tests: jimsh.tests additional tests Signed-off-by: Steve Bennett --- tests/jimsh.test | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests') diff --git a/tests/jimsh.test b/tests/jimsh.test index eabd248..a02ed9f 100644 --- a/tests/jimsh.test +++ b/tests/jimsh.test @@ -37,4 +37,20 @@ test jimsh-1.7 {jimsh prompt} -body { . 4 . } +test jimsh-1.8 {jimsh prompt - error} -body { + exec [info nameofexecutable] << "blah\n" +} -match glob -result {Welcome to Jim version * +. invalid command name "blah" +\[error\] . } + +test jimsh-1.9 {jimsh prompt - error} -body { + exec [info nameofexecutable] << "throw 99\n" +} -match glob -result {Welcome to Jim version * +. \[99\] . } + +test jimsh-1.10 {jimsh prompt - continuation} -body { + exec [info nameofexecutable] << "set x {\nabc\n}\n" +} -match glob -result "Welcome to Jim version *\n. {> {> \nabc\n\n. " + + testreport -- cgit v1.1