From 04d26e1f2f375606f5be41ad59e293b1ac6aee92 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 4 Jul 2020 16:05:55 -0700 Subject: [PATCH] bal: a needed test for sorting by amount (#1279) --- tests/balance/sorting.test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/balance/sorting.test b/tests/balance/sorting.test index 8d328337a..02c6eabbb 100644 --- a/tests/balance/sorting.test +++ b/tests/balance/sorting.test @@ -350,3 +350,17 @@ $ hledger -f- bal -N --sort-amount --flat 4X a 3X b >= + +# 19. Sort by amount, #1279 +< +2020-01-01 + (a:aa) 1 + (a:ab) 3 + (b) 2 + +$ hledger bal -N -S + 4 a + 3 ab + 1 aa + 2 b +>=