diff options
author | Craig Earls <enderw88@gmail.com> | 2011-11-22 08:15:31 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-10 09:36:36 -1000 |
commit | b003b3368a3fae4e95a67ab3ccfc511a68269fbb (patch) | |
tree | 0564ef586c245668c29249f847cbdc71a5b12f14 /test | |
parent | 677c14928ca3f25a1da460c2ff232b9d818c3175 (diff) | |
download | fork-ledger-b003b3368a3fae4e95a67ab3ccfc511a68269fbb.tar.gz fork-ledger-b003b3368a3fae4e95a67ab3ccfc511a68269fbb.tar.bz2 fork-ledger-b003b3368a3fae4e95a67ab3ccfc511a68269fbb.zip |
resolved bug 584, trailing whitespace not ignored in payee
Diffstat (limited to 'test')
-rw-r--r-- | test/spaces.dat | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/test/spaces.dat b/test/spaces.dat new file mode 100644 index 00000000..1ada1b61 --- /dev/null +++ b/test/spaces.dat @@ -0,0 +1,55 @@ +; this file contains spaces after the payee and tag values. Ledger +; should ignore the trailing spaces for the purposes of determining +; unique values +; +; bug 584 and 550 reported trailing spaces being considered +; significant in payee and tag values. +; +; running +; ledger -f test/spaces.dat payees +; yielded two distinct payees, because utils.h/next_element() didn't +; handle a single space followed by a null correctly. +; +; running +; ledger -f test/spaces.dat reg --group-by "tag('test')" +; yielded four groups. + +2011/11/28 * test + ; no space after payee or tag value + Expenses:misc $1 ; test: spaces + Assets:checking + +2011/11/28 * test + ; single space after payee and tag value + Expenses:misc $2 ; test: spaces + Assets:checking + +2011/11/28 test + ; two spaces after payee and tag value + Expenses:misc $4 ; test: spaces + Assets:checking + +2011/11/28 test + ; three spaces after payee and tag value + Expenses:misc $8 ; test: spaces + Assets:checking + +2011/11/28 testcommodity + ; COM commodity has no space after + Expenses:misc 1 COM + Assets:checking + +2011/11/28 testcommodity + ; COM commodity has one space after + Expenses:misc 1 COM + Assets:checking + +2011/11/28 testcommodity + ; COM commodity has two spaces after + Expenses:misc 1 COM + Assets:checking + +2011/11/28 testcommodity + ; COM commodity has three spaces after + Expenses:misc 1 COM + Assets:checking |