summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2018-01-04 14:28:16 -0800
committerGitHub <noreply@github.com>2018-01-04 14:28:16 -0800
commitc2bf7850d1f55cad53ae4e16bde0ebf2cc1a1470 (patch)
tree6ec925ec8a32736a217d90bb31a855dbee8d710e /test
parent8fe509e9e1d3a68fe785299f7484354c34d8ecae (diff)
parentc0ad7e34fa06f0e490a03342bc9b02365080b81a (diff)
downloadfork-ledger-c2bf7850d1f55cad53ae4e16bde0ebf2cc1a1470.tar.gz
fork-ledger-c2bf7850d1f55cad53ae4e16bde0ebf2cc1a1470.tar.bz2
fork-ledger-c2bf7850d1f55cad53ae4e16bde0ebf2cc1a1470.zip
Merge pull request #508 from mbudde/market-group-by-segfault
Fix segfault when using --market with --group-by
Diffstat (limited to 'test')
-rw-r--r--test/regress/market-group-by.test26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/regress/market-group-by.test b/test/regress/market-group-by.test
new file mode 100644
index 00000000..a0d204aa
--- /dev/null
+++ b/test/regress/market-group-by.test
@@ -0,0 +1,26 @@
+D 1000.00 EUR
+
+2008/04/15 * Paid expenses back from cie.
+ Expenses:Cie-Reimbursements 2000 CAD @ 1.10 EUR
+ Assets:Checking
+
+2008/04/15 * Paid expenses back from cie.
+ Expenses:Cie-Reimbursements 2000 USD @ 1.10 EUR
+ Assets:Checking
+
+P 2008/04/20 00:00:00 CAD 1.20 EUR
+P 2008/04/20 00:00:00 USD 1.20 EUR
+
+test reg -V --group-by commodity
+CAD
+08-Apr-15 Paid expenses back .. Exp:Cie-Reimbursements 2200.00 EUR 2200.00 EUR
+08-Apr-20 Commodities revalued <Revalued> 200.00 EUR 2400.00 EUR
+
+EUR
+08-Apr-15 Paid expenses back .. Assets:Checking -2200.00 EUR -2200.00 EUR
+08-Apr-15 Paid expenses back .. Assets:Checking -2200.00 EUR -4400.00 EUR
+
+USD
+08-Apr-15 Paid expenses back .. Exp:Cie-Reimbursements 2200.00 EUR 2200.00 EUR
+08-Apr-20 Commodities revalued <Revalued> 200.00 EUR 2400.00 EUR
+end test