summaryrefslogtreecommitdiff
path: root/test/regress/1106.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-01-20 15:40:40 -0600
committerJohn Wiegley <johnw@newartisans.com>2015-01-20 15:40:40 -0600
commit7690a1b587945899f6a6a9255c0346b067dbf3b1 (patch)
tree7e11da7cee1bfc35f82b7c966f62ec4e840bcf81 /test/regress/1106.test
parent4ec3c9382918bce74fed02c1a5d001c0b8553140 (diff)
parent17189b81062b78baf4da1cf1ee494dc66bf1f736 (diff)
downloadfork-ledger-7690a1b587945899f6a6a9255c0346b067dbf3b1.tar.gz
fork-ledger-7690a1b587945899f6a6a9255c0346b067dbf3b1.tar.bz2
fork-ledger-7690a1b587945899f6a6a9255c0346b067dbf3b1.zip
Merge pull request #379 from afh/pull/trim
[fix] Make trim function trim trailing whitespace
Diffstat (limited to 'test/regress/1106.test')
-rw-r--r--test/regress/1106.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/regress/1106.test b/test/regress/1106.test
new file mode 100644
index 00000000..c6b41071
--- /dev/null
+++ b/test/regress/1106.test
@@ -0,0 +1,11 @@
+2015/01/20 Payee
+ Assets:Cash ¤ 12,34
+ Expenses:Food
+
+test -F "»%(trim(' Trimmed '))«\n" reg expenses
+»Trimmed«
+end test
+
+test -F "»%(trim('Trimmed'))«\n" reg expenses
+»Trimmed«
+end test