diff options
author | Steve Bennett <steveb@workware.net.au> | 2014-03-14 11:46:22 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2014-03-18 10:14:23 +1000 |
commit | fb3d08fe26e26e638a3d30a45ee865ae0628a861 (patch) | |
tree | cc0ca57209ca2570d13a9424a01840760b8f4ec3 /tests/parse.test | |
parent | 4045ca4084c04c83b797e7c898f0190194745593 (diff) | |
download | jimtcl-fb3d08fe26e26e638a3d30a45ee865ae0628a861.zip jimtcl-fb3d08fe26e26e638a3d30a45ee865ae0628a861.tar.gz jimtcl-fb3d08fe26e26e638a3d30a45ee865ae0628a861.tar.bz2 |
jim.c: check for missing quotes, etc. in eval, expr
Throw an error if a script or expression is missing a trailing bracket, brace
or quote rather than simply ignoring the error.
Reported-by: Florian Schäfer <florian.schaefer+github@gmail.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/parse.test')
-rw-r--r-- | tests/parse.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/parse.test b/tests/parse.test index 982c4a4..8b03192 100644 --- a/tests/parse.test +++ b/tests/parse.test @@ -153,9 +153,9 @@ test parse-1.28 "nested dict sugar" { set dq {"} set script "set x ${dq}hello" -test parse-1.29 "missing quote" jim { +test parse-1.29 "missing quote" -constraints jim -body { eval $script -} hello +} -returnCodes error -match glob -result {missing quote} test parse-1.30 "missing quote" { info complete $script |