diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-05-14 17:55:07 -0400 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-05-14 17:55:07 -0400 |
commit | ab921cca0c7953dbacd1bcd17058bdab4f514dda (patch) | |
tree | 3dd1c1bf19c5bd984fde9da9f3a66aacebd10045 /test/regress/1036.test | |
parent | 86fd99c9d0d8ed46f3eb89a7bf0d17eadef574e8 (diff) | |
download | fork-ledger-ab921cca0c7953dbacd1bcd17058bdab4f514dda.tar.gz fork-ledger-ab921cca0c7953dbacd1bcd17058bdab4f514dda.tar.bz2 fork-ledger-ab921cca0c7953dbacd1bcd17058bdab4f514dda.zip |
Ensure that high-levels directives have arguments if they need one
Ensure that high-levels directives, such as account, alias and
commodity, have arguments if they need one. Bug fix for #1036
Diffstat (limited to 'test/regress/1036.test')
-rw-r--r-- | test/regress/1036.test | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/test/regress/1036.test b/test/regress/1036.test new file mode 100644 index 00000000..4e639e5b --- /dev/null +++ b/test/regress/1036.test @@ -0,0 +1,80 @@ + +account + +alias + +apply + +assert + +bucket + +check + +commodity + +def + +define + +apply account foo +end + +expr + +eval + +include + +!include + +import + +payee + +tag + +comment +foo bar +end comment + +value + +test source -> 17 +__ERROR__ +While parsing file "$FILE", line 2: +Error: Directive 'account' requires an argument +While parsing file "$FILE", line 4: +Error: Directive 'alias' requires an argument +While parsing file "$FILE", line 6: +Error: Directive 'apply' requires an argument +While parsing file "$FILE", line 8: +Error: Directive 'assert' requires an argument +While parsing file "$FILE", line 10: +Error: Directive 'bucket' requires an argument +While parsing file "$FILE", line 12: +Error: Directive 'check' requires an argument +While parsing file "$FILE", line 14: +Error: Directive 'commodity' requires an argument +While parsing file "$FILE", line 16: +Error: Directive 'def' requires an argument +While parsing file "$FILE", line 18: +Error: Directive 'define' requires an argument +While parsing file "$FILE", line 23: +Error: Directive 'expr' requires an argument +While parsing file "$FILE", line 25: +Error: Directive 'eval' requires an argument +While parsing file "$FILE", line 27: +Error: Directive 'include' requires an argument +While parsing file "$FILE", line 29: +Error: Directive 'include' requires an argument +While parsing file "$FILE", line 31: +Error: Directive 'import' requires an argument +While parsing file "$FILE", line 33: +Error: Directive 'payee' requires an argument +While parsing file "$FILE", line 35: +Error: Directive 'tag' requires an argument +While parsing file "$FILE", line 41: +Error: Directive 'value' requires an argument +end test + |