diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-05-13 11:04:48 -0400 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-05-13 11:04:48 -0400 |
commit | 9b99a1a9cb12f1ad2594be7c0c7d3c06c68727ea (patch) | |
tree | ea7bfee44d5727c32c7658bbfac41ea618bb3309 /test/regress/error-in-include.test | |
parent | e7af7c45bd969467738afd6f8d60b0b9e64c373b (diff) | |
download | fork-ledger-9b99a1a9cb12f1ad2594be7c0c7d3c06c68727ea.tar.gz fork-ledger-9b99a1a9cb12f1ad2594be7c0c7d3c06c68727ea.tar.bz2 fork-ledger-9b99a1a9cb12f1ad2594be7c0c7d3c06c68727ea.zip |
Add a test for an error in an included file
Diffstat (limited to 'test/regress/error-in-include.test')
-rw-r--r-- | test/regress/error-in-include.test | 17 |
1 files changed, 17 insertions, 0 deletions
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 |