From 12e5106beba7dc967049fd11fb09b85485535919 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Mon, 18 May 2020 13:05:53 +0800 Subject: Add regression test for issue #1895 Thanks to Feiko Nanninga for the test case. --- test/regress/1895.test | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/regress/1895.test (limited to 'test/regress') diff --git a/test/regress/1895.test b/test/regress/1895.test new file mode 100644 index 00000000..5cf63269 --- /dev/null +++ b/test/regress/1895.test @@ -0,0 +1,31 @@ + +2020-05-18 Test + Assets:foo 10.00 EUR + Assets:bar -10.00 EUR + +test bal + 0 Assets + -10.00 EUR bar + 10.00 EUR foo +-------------------- + 0 +end test + +test bal --invert + 0 Assets + 10.00 EUR bar + -10.00 EUR foo +-------------------- + 0 +end test + +test reg --format="%(account) %10(amount) %10(amount_expr) %10(total) %10(display_amount) %10(display_total)\n" +Assets:foo 10.00 EUR 10.00 EUR 10.00 EUR 10.00 EUR 10.00 EUR +Assets:bar -10.00 EUR -10.00 EUR 0 -10.00 EUR 0 +end test + +test reg --format="%(account) %10(amount) %10(amount_expr) %10(total) %10(display_amount) %10(display_total)\n" --invert +Assets:foo 10.00 EUR -10.00 EUR -10.00 EUR -10.00 EUR -10.00 EUR +Assets:bar -10.00 EUR 10.00 EUR 0 10.00 EUR 0 +end test + -- cgit v1.2.3