diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-10-31 14:26:34 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2006-10-31 14:26:34 +0000 |
commit | 0d85fa3fd0f9f036b4ca269a15fce0f0c5348ffe (patch) | |
tree | 15bd5ab7acea2209bad04e8a0fa6b3b84c7e822a /test | |
parent | 7a0743ebc40671a7093c235f7ee7d2030aa75fc3 (diff) |
Add warning about missing colon to invalid expansion when it involved
${if def:h_xxx (overlooked previously).
Diffstat (limited to 'test')
-rw-r--r-- | test/scripts/0000-Basic/0002 | 2 | ||||
-rw-r--r-- | test/stdout/0002 | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002 index 19e1e856a..c9757718b 100644 --- a/test/scripts/0000-Basic/0002 +++ b/test/scripts/0000-Basic/0002 @@ -578,6 +578,8 @@ ${if and {xyz}{a}{b}} ${if and {{xya}}{a}{b}} ${if and {{${lookup{x}lsearch{/a/b}}}}{a}{b}} ${if eq {$h_xyz}{1}{y}{n}} +${if eq {$h_xyz:}{1}{y}{n} +${if def:h_xyz}{y}{n}} ${if or {eq {}{}{yes}{no}} ${if or {{eq {}{}{yes}{no}} ${if or {{eq {}{}}{yes}{no}} diff --git a/test/stdout/0002 b/test/stdout/0002 index 96d4047ac..188a9752f 100644 --- a/test/stdout/0002 +++ b/test/stdout/0002 @@ -555,6 +555,8 @@ xyz > Failed: unknown condition "xya" inside "and{...}" condition > Failed: condition name expected, but found "${lookup{x}lsear" inside "and{...}" condition > Failed: missing } at end of string - could be header name not terminated by colon +> Failed: missing or misplaced { or } +> Failed: missing or misplaced { or } - could be header name not terminated by colon > Failed: each subcondition inside an "or{...}" condition must be in its own {} > Failed: missing } at end of condition inside "or" group > Failed: unknown condition "yes" inside "or{...}" condition |