diff options
author | Michael Budde <mbudde@gmail.com> | 2018-01-25 21:14:10 +0100 |
---|---|---|
committer | Michael Budde <mbudde@gmail.com> | 2018-01-25 21:14:10 +0100 |
commit | 1070c17f8c8933b6b243dbcb5fefabb26e0afcba (patch) | |
tree | 88f02bb41f76f2d4af17fa8d914015afc93b83fc /test/regress/GH520.test | |
parent | b3b72cbea23a69bcbf7a30ca34471c72c07370e4 (diff) | |
download | fork-ledger-1070c17f8c8933b6b243dbcb5fefabb26e0afcba.tar.gz fork-ledger-1070c17f8c8933b6b243dbcb5fefabb26e0afcba.tar.bz2 fork-ledger-1070c17f8c8933b6b243dbcb5fefabb26e0afcba.zip |
Fix handling of edge cases in trim function
Fixes #520
Diffstat (limited to 'test/regress/GH520.test')
-rw-r--r-- | test/regress/GH520.test | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/regress/GH520.test b/test/regress/GH520.test new file mode 100644 index 00000000..54dd2299 --- /dev/null +++ b/test/regress/GH520.test @@ -0,0 +1,33 @@ +2009-01-01 * Jan 09 + A 100.00 EUR + B + +test reg --format '%(trim(""))\n' + + +end test + +test reg --format '%(trim("a"))\n' +a +a +end test + +test reg --format '%(trim(" a"))\n' +a +a +end test + +test reg --format '%(trim("a "))\n' +a +a +end test + +test reg --format '%(trim(" a "))\n' +a +a +end test + +test reg --format '%(trim(" aa "))\n' +aa +aa +end test |