From 17189b81062b78baf4da1cf1ee494dc66bf1f736 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Tue, 20 Jan 2015 21:53:44 +0100 Subject: [fix] Make trim function trim trailing whitespace std::isspace(*e) returns false for the end of c-string null-byte. Bugzilla: 1106 --- test/regress/1106.test | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/regress/1106.test (limited to 'test/regress/1106.test') 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 -- cgit v1.2.3