summaryrefslogtreecommitdiff
path: root/test/baseline/cmd-cleared.test
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2012-03-23 08:58:33 +0000
committerMartin Michlmayr <tbm@cyrius.com>2012-03-23 08:58:33 +0000
commit5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41 (patch)
treead66deafca1f1b6e774b3a652860f4f8eae2eabf /test/baseline/cmd-cleared.test
parent8e6a3ce0d0f838daaad05ee638a8df0d2e7616fa (diff)
downloadfork-ledger-5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41.tar.gz
fork-ledger-5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41.tar.bz2
fork-ledger-5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41.zip
Add more baseline tests
Diffstat (limited to 'test/baseline/cmd-cleared.test')
-rw-r--r--test/baseline/cmd-cleared.test36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/baseline/cmd-cleared.test b/test/baseline/cmd-cleared.test
new file mode 100644
index 00000000..501d207f
--- /dev/null
+++ b/test/baseline/cmd-cleared.test
@@ -0,0 +1,36 @@
+2012-02-23 * Test 1
+ A 10.00
+ B
+
+2012-02-24 Test 1
+ C 15.00
+ D
+
+; leave E/F uncleared
+2012-02-25 Test 1
+ E 20.00
+ F
+
+; have a cleared posting last for C
+2012-02-26 * Test 1
+ C 30.00
+ G
+
+; have an uncleared posting last for A
+2012-02-27 Test 1
+ A 40.00
+ H
+
+test cleared
+ 50 10 12-Feb-23 A
+ -10 -10 12-Feb-23 B
+ 45 30 12-Feb-26 C
+ -15 0 D
+ 20 0 E
+ -20 0 F
+ -30 -30 12-Feb-26 G
+ -40 0 H
+---------------- ---------------- ---------
+ 0 0
+end test
+