From 4d0daf77d7aef535bc206154344a1061b6064ec6 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Sun, 25 Mar 2012 17:39:49 +0100 Subject: Add more baseline tests --- test/baseline/cmd-source.test | 46 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 42 insertions(+), 4 deletions(-) (limited to 'test/baseline/cmd-source.test') 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 -- cgit v1.2.3