diff options
author | John Wiegley <johnw@newartisans.com> | 2009-06-18 16:20:22 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-06-18 16:20:22 +0100 |
commit | 56555f3870ad67eaec5bc3d8def415641b4173eb (patch) | |
tree | ea064ab0690c8c3487b6454e6498fbc3d4c178f2 | |
parent | af8eeb34db07d5660d8dd0c8e1629b6c63b71c5c (diff) | |
download | fork-ledger-56555f3870ad67eaec5bc3d8def415641b4173eb.tar.gz fork-ledger-56555f3870ad67eaec5bc3d8def415641b4173eb.tar.bz2 fork-ledger-56555f3870ad67eaec5bc3d8def415641b4173eb.zip |
Added baseline tests for --related, --related-all
-rw-r--r-- | src/report.h | 6 | ||||
-rw-r--r-- | test/baseline/opt-related-all.test | 14 | ||||
-rw-r--r-- | test/baseline/opt-related.test | 13 |
3 files changed, 32 insertions, 1 deletions
diff --git a/src/report.h b/src/report.h index dc53cee7..0f01345c 100644 --- a/src/report.h +++ b/src/report.h @@ -691,7 +691,11 @@ public: }); OPTION(report_t, related); // -r - OPTION(report_t, related_all); + + OPTION_(report_t, related_all, DO() { + parent->HANDLER(related).on_only(string("--related-all")); + }); + OPTION(report_t, revalued); OPTION(report_t, revalued_only); diff --git a/test/baseline/opt-related-all.test b/test/baseline/opt-related-all.test new file mode 100644 index 00000000..645f8a91 --- /dev/null +++ b/test/baseline/opt-related-all.test @@ -0,0 +1,14 @@ +reg --related-all credit +<<< +2009/06/18 This is a Test + Expenses:Food $20.00 + Expenses:Tips $2.00 + Expenses:Tax $3.00 + Liabilities:Credit +>>>1 +09-Jun-18 This is a Test Expenses:Food $20.00 $20.00 + Expenses:Tips $2.00 $22.00 + Expenses:Tax $3.00 $25.00 + Liabilities:Credit $-25.00 0 +>>>2 +=== 0 diff --git a/test/baseline/opt-related.test b/test/baseline/opt-related.test new file mode 100644 index 00000000..576bc9d2 --- /dev/null +++ b/test/baseline/opt-related.test @@ -0,0 +1,13 @@ +reg --related credit +<<< +2009/06/18 This is a Test + Expenses:Food $20.00 + Expenses:Tips $2.00 + Expenses:Tax $3.00 + Liabilities:Credit +>>>1 +09-Jun-18 This is a Test Expenses:Food $20.00 $20.00 + Expenses:Tips $2.00 $22.00 + Expenses:Tax $3.00 $25.00 +>>>2 +=== 0 |