summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2016-04-14 13:31:20 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2016-04-14 13:34:24 +0100
commit1cf59ee7f68960237ad5cd3d599512fdbe5b3954 (patch)
tree49502e6cc3e2543db631e829c2d54c078b254293 /test
parente47376befc6e4a415319e3c29fad9b0ba2bbd8ee (diff)
Expansions: fix forced-fail of extract. Bug 1815
Diffstat (limited to 'test')
-rw-r--r--test/scripts/0000-Basic/00021
-rw-r--r--test/stdout/00024
2 files changed, 3 insertions, 2 deletions
diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002
index bc61998ca..583adcff0 100644
--- a/test/scripts/0000-Basic/0002
+++ b/test/scripts/0000-Basic/0002
@@ -617,6 +617,7 @@ ${extract{ 2 }{ }{a b c}}
${map{a,1:b,2:c,3}{${extract{1}{,}{$item}{$value}{}}}}
${map{a,1:b,2:c,3}{${extract{1}{,}{$item}{$value}{failcase}{bogus_argument}}}}
+${map{a,1:b,2:c,3}{${extract{1}{,}{$item}{$value}fail}}}
# Translation
diff --git a/test/stdout/0002 b/test/stdout/0002
index 13ef57a45..9a2768bdc 100644
--- a/test/stdout/0002
+++ b/test/stdout/0002
@@ -579,8 +579,8 @@
> b
>
> a:b:c
-> Failed: curly-bracket problem in conditional yes/no parsing: did not close with '}'
- remaining string is '{bogus_argument}}}}' inside "map" item
+> Failed: missing '}' closing extract inside "map" item
+> a:b:c
>
> # Translation
>