diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-05-14 17:52:05 -0400 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-05-14 17:53:43 -0400 |
commit | 86fd99c9d0d8ed46f3eb89a7bf0d17eadef574e8 (patch) | |
tree | b0dde2595a19991eca7d6c813311ad30a1a6fd57 /test/regress/785.test | |
parent | 60d9c2bc1d8095f06c13fbf1bcce2d5c587a3a64 (diff) | |
download | fork-ledger-86fd99c9d0d8ed46f3eb89a7bf0d17eadef574e8.tar.gz fork-ledger-86fd99c9d0d8ed46f3eb89a7bf0d17eadef574e8.tar.bz2 fork-ledger-86fd99c9d0d8ed46f3eb89a7bf0d17eadef574e8.zip |
Ensure that directives have arguments if they need one
Ensure that account, commodity and payee directives have arguments
if they need one. Bug fix for #785
Diffstat (limited to 'test/regress/785.test')
-rw-r--r-- | test/regress/785.test | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/test/regress/785.test b/test/regress/785.test new file mode 100644 index 00000000..706d7a84 --- /dev/null +++ b/test/regress/785.test @@ -0,0 +1,85 @@ + +account AA + alias + +account BB + default + +account CC + note + +account DD + payee + +account EE + value + +account FF + assert + +account GG + check + +account HH + eval + +account II + expr + +commodity AAA + alias + +commodity BBB + default + +commodity CCC + nomarket + +commodity DDD + value + +commodity EEE + format + +commodity FFF + note + +payee FOO + alias + uuid fooo + +payee BAR + uuid + +test source -> 14 +__ERROR__ +While parsing file "$FILE", line 3: +Error: Account directive 'alias' requires an argument +While parsing file "$FILE", line 9: +Error: Account directive 'note' requires an argument +While parsing file "$FILE", line 12: +Error: Account directive 'payee' requires an argument +While parsing file "$FILE", line 15: +Error: Account directive 'value' requires an argument +While parsing file "$FILE", line 18: +Error: Account directive 'assert' requires an argument +While parsing file "$FILE", line 21: +Error: Account directive 'check' requires an argument +While parsing file "$FILE", line 24: +Error: Account directive 'eval' requires an argument +While parsing file "$FILE", line 27: +Error: Account directive 'expr' requires an argument +While parsing file "$FILE", line 30: +Error: Commodity directive 'alias' requires an argument +While parsing file "$FILE", line 39: +Error: Commodity directive 'value' requires an argument +While parsing file "$FILE", line 42: +Error: Commodity directive 'format' requires an argument +While parsing file "$FILE", line 45: +Error: Commodity directive 'note' requires an argument +While parsing file "$FILE", line 48: +Error: Payee directive 'alias' requires an argument +While parsing file "$FILE", line 52: +Error: Payee directive 'uuid' requires an argument +end test + |