summaryrefslogtreecommitdiff
path: root/test/baseline/opt-period.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-02-12 17:31:49 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-02-12 18:11:26 -0500
commit9c62463f84dc398b41b387fbacce31abed7e4839 (patch)
treeba73122f301f477b8a4174bd1c3ff27334709ad0 /test/baseline/opt-period.test
parent512542552b3e3e78f610f3d3f2fd1c8169188324 (diff)
downloadfork-ledger-9c62463f84dc398b41b387fbacce31abed7e4839.tar.gz
fork-ledger-9c62463f84dc398b41b387fbacce31abed7e4839.tar.bz2
fork-ledger-9c62463f84dc398b41b387fbacce31abed7e4839.zip
Changed testing format to aid with debugging
Diffstat (limited to 'test/baseline/opt-period.test')
-rw-r--r--test/baseline/opt-period.test30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/baseline/opt-period.test b/test/baseline/opt-period.test
index c471c5a2..7268bcce 100644
--- a/test/baseline/opt-period.test
+++ b/test/baseline/opt-period.test
@@ -1,5 +1,3 @@
-reg -p "january 2008"
-<<<
2008/01/01 January
Expenses:Books $10.00
Liabilities:Cards $10.00
@@ -239,37 +237,38 @@ reg -p "january 2008"
Expenses:Books $120.00
Liabilities:Cards $120.00
Assets:Cash
->>>1
+
+test reg -p "january 2008"
08-Jan-01 January Expenses:Books $10.00 $10.00
Liabilities:Cards $10.00 $20.00
Assets:Cash $-20.00 0
08-Jan-31 End of January Expenses:Books $10.00 $10.00
Liabilities:Cards $10.00 $20.00
Assets:Cash $-20.00 0
-=== 0
-reg -p "monthly january 2008"
->>>1
+end test
+
+test reg -p "monthly january 2008"
08-Jan-01 - 08-Jan-31 Assets:Cash $-40.00 $-40.00
Expenses:Books $20.00 $-20.00
Liabilities:Cards $20.00 0
-=== 0
-reg -p "weekly january 2008"
->>>1
+end test
+
+test reg -p "weekly january 2008"
08-Jan-01 - 08-Jan-05 Assets:Cash $-20.00 $-20.00
Expenses:Books $10.00 $-10.00
Liabilities:Cards $10.00 0
08-Jan-29 - 08-Jan-31 Assets:Cash $-20.00 $-20.00
Expenses:Books $10.00 $-10.00
Liabilities:Cards $10.00 0
-=== 0
-reg -p "yearly 2008"
->>>1
+end test
+
+test reg -p "yearly 2008"
08-Jan-01 - 08-Dec-31 Assets:Cash $-3120.00 $-3120.00
Expenses:Books $1560.00 $-1560.00
Liabilities:Cards $1560.00 0
-=== 0
-reg -p "from 2009/11/01"
->>>1
+end test
+
+test reg -p "from 2009/11/01"
09-Nov-01 November Expenses:Books $110.00 $110.00
Liabilities:Cards $110.00 $220.00
Assets:Cash $-220.00 0
@@ -282,3 +281,4 @@ reg -p "from 2009/11/01"
09-Dec-31 End of December Expenses:Books $120.00 $120.00
Liabilities:Cards $120.00 $240.00
Assets:Cash $-240.00 0
+end test