summaryrefslogtreecommitdiff
path: root/test/baseline/cmd-source.test
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2012-03-25 17:39:49 +0100
committerMartin Michlmayr <tbm@cyrius.com>2012-03-25 17:39:49 +0100
commit4d0daf77d7aef535bc206154344a1061b6064ec6 (patch)
tree558f003c46d112b01030e3ec2bd7a0e3760f6f67 /test/baseline/cmd-source.test
parentf4e6d30736a41008da0193e58fbe89f15fdbb3b0 (diff)
downloadfork-ledger-4d0daf77d7aef535bc206154344a1061b6064ec6.tar.gz
fork-ledger-4d0daf77d7aef535bc206154344a1061b6064ec6.tar.bz2
fork-ledger-4d0daf77d7aef535bc206154344a1061b6064ec6.zip
Add more baseline tests
Diffstat (limited to 'test/baseline/cmd-source.test')
-rw-r--r--test/baseline/cmd-source.test46
1 files changed, 42 insertions, 4 deletions
diff --git a/test/baseline/cmd-source.test b/test/baseline/cmd-source.test
index e78ae6fd..95a10924 100644
--- a/test/baseline/cmd-source.test
+++ b/test/baseline/cmd-source.test
@@ -1,3 +1,5 @@
+~ xxx
+
2012-02-28 * Test
E 30.00 EUR
F
@@ -12,15 +14,51 @@
E 30.00 EUR
F
-test source -> 3
+2012-03-25 * Test
+ G AAA
+ H
+
+2012-03-26 * Test
+ I 1,00.00 EUR
+ J -100.00 EUR
+
+2012-03-27 * Test
+ K 100.00 EUR
+ L -200.00 EUR
+
+test source -> 7
__ERROR__
-While parsing file "$FILE", line 4:
-Error: Only one posting with null amount allowed per transaction
-While parsing file "$FILE", line 9:
+While parsing file "$FILE", line 1:
+While parsing periodic transaction:
+> ~ xxx
+Error: Unexpected date period token 'xxx'
+While parsing file "$FILE", line 6:
Error: Only one posting with null amount allowed per transaction
While parsing file "$FILE", line 11:
+Error: Only one posting with null amount allowed per transaction
+While parsing file "$FILE", line 13:
While parsing transaction:
> 2012/03/xx
Error: Invalid date: 2012/03/xx
+While parsing file "$FILE", line 18:
+While parsing posting:
+ G AAA
+ ^^^
+Error: No quantity specified for amount
+While parsing file "$FILE", line 22:
+While parsing posting:
+ I 1,00.00 EUR
+ ^^^^^^^^^^^
+Error: Incorrect use of thousand-mark comma
+While parsing file "$FILE", line 27:
+While balancing transaction from "$FILE", lines 25-27:
+> 2012-03-27 * Test
+> K 100.00 EUR
+> L -200.00 EUR
+Unbalanced remainder is:
+ -100.00 EUR
+Amount to balance against:
+ 100.00 EUR
+Error: Transaction does not balance
end test