summaryrefslogtreecommitdiff
path: root/test/baseline/dir-apply.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-12 22:38:36 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-12 22:38:36 -0500
commitbe289fba1f3bdb4dc07d5595ad8b46a9309f42f3 (patch)
tree73526bd98087b3ef69aaa300b2bd8112d5aab924 /test/baseline/dir-apply.test
parentcf67fcbd0628e03ac2f788da6f2c082121faf21f (diff)
downloadfork-ledger-be289fba1f3bdb4dc07d5595ad8b46a9309f42f3.tar.gz
fork-ledger-be289fba1f3bdb4dc07d5595ad8b46a9309f42f3.tar.bz2
fork-ledger-be289fba1f3bdb4dc07d5595ad8b46a9309f42f3.zip
Fixed a few bugs related to apply directives
Diffstat (limited to 'test/baseline/dir-apply.test')
-rw-r--r--test/baseline/dir-apply.test34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/baseline/dir-apply.test b/test/baseline/dir-apply.test
new file mode 100644
index 00000000..7d9e91d9
--- /dev/null
+++ b/test/baseline/dir-apply.test
@@ -0,0 +1,34 @@
+apply account Master Account
+
+2012-03-12 KFC
+ Expenses:Food $20
+ Assets:Cash
+
+end apply account
+
+apply account Master Account
+
+2012-03-12 KFC
+ Expenses:Food $20
+ Assets:Cash
+
+end apply
+
+apply account Master Account
+
+2012-03-12 KFC
+ Expenses:Food $20
+ Assets:Cash
+
+end
+
+apply account Master Account
+include dir-apply.dat
+end
+
+test reg food
+12-Mar-12 KFC Master A:Expenses:Food $20 $20
+12-Mar-12 KFC Master A:Expenses:Food $20 $40
+12-Mar-12 KFC Master A:Expenses:Food $20 $60
+12-Mar-12 KFC Master A:Expenses:Food $40 $100
+end test