summaryrefslogtreecommitdiff
path: root/test/baseline/opt-code-as-account.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-20 18:15:43 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-20 18:15:43 -0400
commitb94512e4cce884ad2df4f86e0947f610468e89c2 (patch)
tree8486f97263b3d5f642fbcd5c5db9f2ac102de730 /test/baseline/opt-code-as-account.test
parenta13cafa2f7c105199c23cef185b5bbe2e03ec95b (diff)
downloadfork-ledger-b94512e4cce884ad2df4f86e0947f610468e89c2.tar.gz
fork-ledger-b94512e4cce884ad2df4f86e0947f610468e89c2.tar.bz2
fork-ledger-b94512e4cce884ad2df4f86e0947f610468e89c2.zip
Added several more option baseline tests
Diffstat (limited to 'test/baseline/opt-code-as-account.test')
-rw-r--r--test/baseline/opt-code-as-account.test34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/baseline/opt-code-as-account.test b/test/baseline/opt-code-as-account.test
new file mode 100644
index 00000000..c95ebd22
--- /dev/null
+++ b/test/baseline/opt-code-as-account.test
@@ -0,0 +1,34 @@
+reg --code-as-account
+<<<
+2008/01/01 * (100) January
+ Expenses:Books $10.00
+ Assets:Cash
+
+2008/01/31 (101) End of January
+ Expenses:Books $10.00
+ Assets:Cash
+
+2008/02/01 * (102) February
+ Expenses:Books $20.00
+ Assets:Cash
+
+2008/02/28 (103) End of February
+ Expenses:Books $20.00
+ Assets:Cash
+
+2008/03/01 * March
+ Expenses:Books $30.00
+ Assets:Cash
+>>>1
+08-Jan-01 January 100 $10.00 $10.00
+08-Jan-01 January 100 $-10.00 0
+08-Jan-31 End of January 101 $10.00 $10.00
+08-Jan-31 End of January 101 $-10.00 0
+08-Feb-01 February 102 $20.00 $20.00
+08-Feb-01 February 102 $-20.00 0
+08-Feb-28 End of February 103 $20.00 $20.00
+08-Feb-28 End of February 103 $-20.00 0
+08-Mar-01 March $30.00 $30.00
+08-Mar-01 March $-30.00 0
+>>>2
+=== 0