From c69701cf81766b05d494eff372e67cb7983d6bcd Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Thu, 22 Mar 2012 18:27:04 +0000 Subject: Add some regression tests --- test/regress/1A546C4D.test | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/regress/1A546C4D.test (limited to 'test/regress/1A546C4D.test') diff --git a/test/regress/1A546C4D.test b/test/regress/1A546C4D.test new file mode 100644 index 00000000..e72fc553 --- /dev/null +++ b/test/regress/1A546C4D.test @@ -0,0 +1,13 @@ +2012/02/22 * Testing invalid amount + Assets:Cash $1,00.00 + Equity:Opening Balances + +test bal -> 1 +__ERROR__ +While parsing file "$sourcepath/test/regress/1A546C4D.test", line 2: +While parsing posting: + Assets:Cash $1,00.00 + ^^^^^^^^ +Error: Incorrect use of thousand-mark comma +end test + -- cgit v1.2.3 From 6ff2257f30391f2da15c3ef8815180e2c3f03ccb Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Thu, 22 Mar 2012 21:53:53 +0000 Subject: Simply regression tests by using $FILE --- test/regress/1A546C4D.test | 2 +- test/regress/5D92A5EB.test | 2 +- test/regress/6188B0EC.test | 2 +- test/regress/8EAF77C0.test | 2 +- test/regress/D51BFF74.test | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test/regress/1A546C4D.test') diff --git a/test/regress/1A546C4D.test b/test/regress/1A546C4D.test index e72fc553..97adc9de 100644 --- a/test/regress/1A546C4D.test +++ b/test/regress/1A546C4D.test @@ -4,7 +4,7 @@ test bal -> 1 __ERROR__ -While parsing file "$sourcepath/test/regress/1A546C4D.test", line 2: +While parsing file "$FILE", line 2: While parsing posting: Assets:Cash $1,00.00 ^^^^^^^^ diff --git a/test/regress/5D92A5EB.test b/test/regress/5D92A5EB.test index 1d3a06bb..1bdd7256 100644 --- a/test/regress/5D92A5EB.test +++ b/test/regress/5D92A5EB.test @@ -14,7 +14,7 @@ test -J reg checking -> 1 __ERROR__ -While parsing file "$sourcepath/test/regress/5D92A5EB.test", line 13: +While parsing file "$FILE", line 13: While parsing periodic transaction: > ~ Monthly from 2010/7/1 > Expenses:Auto:Gas $100.00 diff --git a/test/regress/6188B0EC.test b/test/regress/6188B0EC.test index 475988e6..b2aec910 100644 --- a/test/regress/6188B0EC.test +++ b/test/regress/6188B0EC.test @@ -4,7 +4,7 @@ test bal -> 1 __ERROR__ -While parsing file "$sourcepath/test/regress/6188B0EC.test", line 3: +While parsing file "$FILE", line 3: Error: File to include was not found: "$sourcepath/test/regress/6188B0EC-does-not-exist.dat" end test diff --git a/test/regress/8EAF77C0.test b/test/regress/8EAF77C0.test index fd73197e..f0a2829c 100644 --- a/test/regress/8EAF77C0.test +++ b/test/regress/8EAF77C0.test @@ -12,6 +12,6 @@ test reg -> 1 __ERROR__ -While parsing file "$sourcepath/test/regress/8EAF77C0.test", line 5: +While parsing file "$FILE", line 5: Error: Unexpected whitespace at beginning of line end test diff --git a/test/regress/D51BFF74.test b/test/regress/D51BFF74.test index dc472215..a13af897 100644 --- a/test/regress/D51BFF74.test +++ b/test/regress/D51BFF74.test @@ -16,7 +16,7 @@ test reg -> 1 __ERROR__ -While parsing file "$sourcepath/test/regress/D51BFF74.test", line 6: +While parsing file "$FILE", line 6: While parsing posting: Expenses:Food $- 20 ^^^^^ -- cgit v1.2.3