aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2014-03-14 11:46:22 +1000
committerSteve Bennett <steveb@workware.net.au>2014-03-18 10:14:23 +1000
commitfb3d08fe26e26e638a3d30a45ee865ae0628a861 (patch)
treecc0ca57209ca2570d13a9424a01840760b8f4ec3 /tests
parent4045ca4084c04c83b797e7c898f0190194745593 (diff)
downloadjimtcl-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')
-rw-r--r--tests/parse.test4
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