diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2015-02-24 19:54:33 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2015-02-24 19:54:33 +0100 |
commit | 7358ced548d94b49c5b07dde08dcd8099c4f5c9d (patch) | |
tree | 0a9280ae52c64edf60e11969c57ea76a2ab825ea /test/baseline | |
parent | a526851c8a9be04d1c2c96d68a9548bfed27d248 (diff) | |
parent | df944929f82b473bbd155eac826420f0b38644eb (diff) | |
download | fork-ledger-7358ced548d94b49c5b07dde08dcd8099c4f5c9d.tar.gz fork-ledger-7358ced548d94b49c5b07dde08dcd8099c4f5c9d.tar.bz2 fork-ledger-7358ced548d94b49c5b07dde08dcd8099c4f5c9d.zip |
Merge pull request #401 from thdox/baseline-tests
Improve baseline tests
Diffstat (limited to 'test/baseline')
-rw-r--r-- | test/baseline/opt-init-file.dat | 1 | ||||
-rw-r--r-- | test/baseline/opt-init-file.test | 10 | ||||
-rw-r--r-- | test/baseline/opt-price-db.dat | 2 | ||||
-rw-r--r-- | test/baseline/opt-price-db.test | 8 | ||||
-rw-r--r-- | test/baseline/opt-script.dat | 3 | ||||
-rw-r--r-- | test/baseline/opt-script.test | 15 |
6 files changed, 39 insertions, 0 deletions
diff --git a/test/baseline/opt-init-file.dat b/test/baseline/opt-init-file.dat new file mode 100644 index 00000000..92c5307a --- /dev/null +++ b/test/baseline/opt-init-file.dat @@ -0,0 +1 @@ +--decimal-comma diff --git a/test/baseline/opt-init-file.test b/test/baseline/opt-init-file.test new file mode 100644 index 00000000..128814e1 --- /dev/null +++ b/test/baseline/opt-init-file.test @@ -0,0 +1,10 @@ +2012-03-17 Quick + Expenses:Food 12,50 € + Assets:Cash + +test --init-file test/baseline/opt-init-file.dat bal + -12,50 € Assets:Cash + 12,50 € Expenses:Food +-------------------- + 0 +end test diff --git a/test/baseline/opt-price-db.dat b/test/baseline/opt-price-db.dat new file mode 100644 index 00000000..abc51a0a --- /dev/null +++ b/test/baseline/opt-price-db.dat @@ -0,0 +1,2 @@ +P 2012-03-16 06:47:12 CAD $2.50 +P 2012-03-17 06:47:12 CAD $3.50 diff --git a/test/baseline/opt-price-db.test b/test/baseline/opt-price-db.test new file mode 100644 index 00000000..06021e4a --- /dev/null +++ b/test/baseline/opt-price-db.test @@ -0,0 +1,8 @@ +2012-03-17 KFC + Expenses:Food 20 CAD + Assets:Cash + +test pricedb --price-db test/baseline/opt-price-db.dat +P 2012/03/16 06:47:12 CAD $2.5 +P 2012/03/17 06:47:12 CAD $3.5 +end test diff --git a/test/baseline/opt-script.dat b/test/baseline/opt-script.dat new file mode 100644 index 00000000..ac6085d5 --- /dev/null +++ b/test/baseline/opt-script.dat @@ -0,0 +1,3 @@ +--no-pager --columns=80 bal +--no-pager --columns=80 reg +--no-pager --columns=80 print diff --git a/test/baseline/opt-script.test b/test/baseline/opt-script.test new file mode 100644 index 00000000..041c15ee --- /dev/null +++ b/test/baseline/opt-script.test @@ -0,0 +1,15 @@ +2012-03-17 KFC + Expenses:Food 20 CAD + Assets:Cash + +test --script test/baseline/opt-script.dat + -20 CAD Assets:Cash + 20 CAD Expenses:Food +-------------------- + 0 +12-Mar-17 KFC Expenses:Food 20 CAD 20 CAD + Assets:Cash -20 CAD 0 +2012/03/17 KFC + Expenses:Food 20 CAD + Assets:Cash +end test |