diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2015-07-28 17:31:14 -0400 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2015-07-28 17:31:14 -0400 |
commit | 2c8c6524bd2e5cc8436341947989f05c7028f72f (patch) | |
tree | 30404b1bf371348b273584c8fe537287c1906da6 /test/baseline | |
parent | b60a12a6cef6338a3a2fb731d77496f4752f6ce6 (diff) | |
download | fork-ledger-2c8c6524bd2e5cc8436341947989f05c7028f72f.tar.gz fork-ledger-2c8c6524bd2e5cc8436341947989f05c7028f72f.tar.bz2 fork-ledger-2c8c6524bd2e5cc8436341947989f05c7028f72f.zip |
Improve --explicit test case
Since --explicit tells ledger to require pre-declarations to establish
"known-ness" (rather than taking it from cleared transactions), make
sure the transactions are cleared.
Diffstat (limited to 'test/baseline')
-rw-r--r-- | test/baseline/opt-explicit.test | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/test/baseline/opt-explicit.test b/test/baseline/opt-explicit.test index defae179..20b74913 100644 --- a/test/baseline/opt-explicit.test +++ b/test/baseline/opt-explicit.test @@ -2,16 +2,18 @@ account Assets:Cash account Expenses:Phone account Expenses:Rent commodity GBP +tag bar -2012-03-20 Phone +2012-03-20 * Phone + ; :bar: Expenses:Phone 20.00 GBP Assets:Cash -2012-03-21 Rent +2012-03-21 * Rent Expenses:Rent 550.00 GBP Assets:Cash -2012-03-22 Food +2012-03-22 * Food ; :food: Expenses:Food 20.00 EUR Assets:Cash @@ -27,8 +29,8 @@ test bal --explicit --strict -------------------- 0 __ERROR__ -Warning: "$FILE", line 16: Unknown account 'Expenses:Food' -Warning: "$FILE", line 16: Unknown commodity 'EUR' -Warning: "$FILE", line 17: Unknown metadata tag 'food' +Warning: "$FILE", line 18: Unknown account 'Expenses:Food' +Warning: "$FILE", line 18: Unknown commodity 'EUR' +Warning: "$FILE", line 19: Unknown metadata tag 'food' end test |