summaryrefslogtreecommitdiff
path: root/test/regress/516.test
diff options
context:
space:
mode:
authorAustin Wise <AustinWise@gmail.com>2021-07-14 01:03:30 -0700
committerMartin Michlmayr <tbm@cyrius.com>2021-08-24 16:32:10 +0800
commite712ce4e7cb6aac7469682cc05079707cbfb759b (patch)
tree5e9aafce7c776f8880b5c4229bf2727bfa2353ff /test/regress/516.test
parent71c0903dffeb8e6750abdfba3c2e6e99f38f146c (diff)
downloadfork-ledger-e712ce4e7cb6aac7469682cc05079707cbfb759b.tar.gz
fork-ledger-e712ce4e7cb6aac7469682cc05079707cbfb759b.tar.bz2
fork-ledger-e712ce4e7cb6aac7469682cc05079707cbfb759b.zip
Fix silent errors when reading lines from input files.
Handle files that don't end with a new line. Throw an error when the buffer size is exceeded. Fixes #516 Contributes to #1149
Diffstat (limited to 'test/regress/516.test')
-rw-r--r--test/regress/516.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/regress/516.test b/test/regress/516.test
new file mode 100644
index 00000000..538b5cb3
--- /dev/null
+++ b/test/regress/516.test
@@ -0,0 +1,4 @@
+test cleared --file test/input/parsing.dat --cleared-format "%-30(account) %15(get_at(total_expr, 0)) %15(get_at(total_expr, 1))\n%/"
+Assets $30 0
+Income $-30 0
+end test