From 20c076dff92806c6c2aae7c0c87b000ffc703382 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 16 Mar 2012 03:50:40 -0500 Subject: Improved error reports about leading whitespace --- test/regress/D51BFF74.test | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/regress/D51BFF74.test (limited to 'test/regress/D51BFF74.test') diff --git a/test/regress/D51BFF74.test b/test/regress/D51BFF74.test new file mode 100644 index 00000000..dc472215 --- /dev/null +++ b/test/regress/D51BFF74.test @@ -0,0 +1,24 @@ +2012-03-16 KFC + Expenses:Food $-20 + Assets:Cash + +2012-03-16 KFC + Expenses:Food $- 20 + Assets:Cash + +2012-03-16 KFC + Expenses:Food -$20 + Assets:Cash + +2012-03-16 KFC + Expenses:Food - $20 + Assets:Cash + +test reg -> 1 +__ERROR__ +While parsing file "$sourcepath/test/regress/D51BFF74.test", line 6: +While parsing posting: + Expenses:Food $- 20 + ^^^^^ +Error: No quantity specified for amount +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/D51BFF74.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