ledger/test/regress/1106.test
Alexis Hildebrandt 17189b8106 [fix] Make trim function trim trailing whitespace
std::isspace(*e) returns false for the end of c-string null-byte.

Bugzilla: 1106
2015-01-20 22:18:32 +01:00

11 lines
206 B
Text

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