diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-05-30 22:01:08 -0400 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-05-30 22:01:08 -0400 |
commit | dfcbbd169e7b975f37744ad65e4e324c5f6c42cb (patch) | |
tree | 21f50f3b1849bbb641d215673d621e5a84667e6a /test/baseline/cmd-select.test | |
parent | b2b84f35b4ac5b794b4cf82b721948fbe263718d (diff) | |
download | fork-ledger-dfcbbd169e7b975f37744ad65e4e324c5f6c42cb.tar.gz fork-ledger-dfcbbd169e7b975f37744ad65e4e324c5f6c42cb.tar.bz2 fork-ledger-dfcbbd169e7b975f37744ad65e4e324c5f6c42cb.zip |
Fix query string for select account
A wrong query string was generated by "select account": one ansify_if()
too much was listed and justify() was called with the wrong parameters.
Bug fix for #744
Diffstat (limited to 'test/baseline/cmd-select.test')
-rw-r--r-- | test/baseline/cmd-select.test | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/test/baseline/cmd-select.test b/test/baseline/cmd-select.test index c8ce7008..67ce70f2 100644 --- a/test/baseline/cmd-select.test +++ b/test/baseline/cmd-select.test @@ -16,32 +16,32 @@ F test select "date, account, amount" from posts -12-Feb-28 E [0m 20.00 EUR -12-Feb-28 F [0m -20.00 EUR -12-Feb-29 Test [0m 10.01 EUR -12-Feb-29 F [0m -10.01 EUR -12-Mar-24 C [0m 30.00 EUR -12-Mar-24 D [0m -30.00 EUR -12-Mar-25 E [0m 40.00 GBP -12-Mar-25 F [0m -40.00 GBP +12-Feb-28 E 20.00 EUR +12-Feb-28 F -20.00 EUR +12-Feb-29 Test 10.01 EUR +12-Feb-29 F -10.01 EUR +12-Mar-24 C 30.00 EUR +12-Mar-24 D -30.00 EUR +12-Mar-25 E 40.00 GBP +12-Mar-25 F -40.00 GBP end test test select "date, account, amount from posts where account =~ /^e/" -12-Feb-28 E [0m 20.00 EUR -12-Mar-25 E [0m 40.00 GBP +12-Feb-28 E 20.00 EUR +12-Mar-25 E 40.00 GBP end test test select "date, account, amount from posts where account =~ /e/" -12-Feb-28 E [0m 20.00 EUR -12-Feb-29 Test [0m 10.01 EUR -12-Mar-25 E [0m 40.00 GBP +12-Feb-28 E 20.00 EUR +12-Feb-29 Test 10.01 EUR +12-Mar-25 E 40.00 GBP end test ; leave out "from posts" since it is the default test select "date, account, amount where account =~ /e/" -12-Feb-28 E [0m 20.00 EUR -12-Feb-29 Test [0m 10.01 EUR -12-Mar-25 E [0m 40.00 GBP +12-Feb-28 E 20.00 EUR +12-Feb-29 Test 10.01 EUR +12-Mar-25 E 40.00 GBP end test test select "date, payee, amount from posts where account =~ /e/ and commodity =~ /GBP/" |