summaryrefslogtreecommitdiff
path: root/test/baseline/cmd-entry.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-04-26 16:39:25 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-04-26 16:39:25 -0500
commit64a9b42381c26baf24e58b40f50f0b253e551811 (patch)
tree5447a29dff64c3a8b7be8100a01bcb4a2d73b0bb /test/baseline/cmd-entry.test
parent7cc550fc22357e2ded194d3e65287c6b3317f5ae (diff)
parentb4407c10c0071365322b2963747bf42a57fd7304 (diff)
downloadfork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.tar.gz
fork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.tar.bz2
fork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.zip
Merge branch 'release/v3.0.0-20120426'
Diffstat (limited to 'test/baseline/cmd-entry.test')
-rw-r--r--test/baseline/cmd-entry.test43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/baseline/cmd-entry.test b/test/baseline/cmd-entry.test
new file mode 100644
index 00000000..0de39b9c
--- /dev/null
+++ b/test/baseline/cmd-entry.test
@@ -0,0 +1,43 @@
+2012-03-23 * Test 1
+ A $10.00
+ B
+
+2012-03-24 * Test 2
+ ; Payee: Test 3
+ C 20.00 EUR
+ D
+
+2012-03-25 * Test 4
+ E 30.00 GBP
+ F
+
+test --now 2012/03/25 entry "Test 1"
+2012/03/25 Test 1
+ A $10.00
+ B
+end test
+
+test --now 2012/03/25 entry "Test 2"
+2012/03/25 Test 2
+ C 20.00 EUR
+ D
+end test
+
+; I think this output is wrong, see bug #737
+test --now 2012/03/25 entry "Test 3"
+2012/03/25 Test 4
+ E 30.00 GBP
+ F
+end test
+
+test --now 2012/03/25 entry "Test 4"
+2012/03/25 Test 4
+ E 30.00 GBP
+ F
+end test
+
+test entry no:such:account -> 1
+__ERROR__
+Error: No accounts, and no past transaction matching 'no:such:account'
+end test
+