diff options
-rw-r--r-- | test/regress/error-in-include.dat | 5 | ||||
-rw-r--r-- | test/regress/error-in-include.test | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/regress/error-in-include.dat b/test/regress/error-in-include.dat new file mode 100644 index 00000000..9f654a42 --- /dev/null +++ b/test/regress/error-in-include.dat @@ -0,0 +1,5 @@ + +2014-05-13 * Does not balance + A $10.00 + B -$11.00 + diff --git a/test/regress/error-in-include.test b/test/regress/error-in-include.test new file mode 100644 index 00000000..58a06e25 --- /dev/null +++ b/test/regress/error-in-include.test @@ -0,0 +1,17 @@ + +!include error-in-include.dat + +test bal -> 1 +__ERROR__ +In file included from "$FILE", line 2: +While parsing file "$sourcepath/test/regress/error-in-include.dat", line 4: +While balancing transaction from "$sourcepath/test/regress/error-in-include.dat", lines 2-4: +> 2014-05-13 * Does not balance +> A $10.00 +> B -$11.00 +Unbalanced remainder is: + $-1.00 +Amount to balance against: + $10.00 +Error: Transaction does not balance +end test |