diff --git a/tests/test_reports_balance.py b/tests/test_reports_balance.py index d827018f52d459839657bda2acf7a5b7bd93b473..8ab0a587b9cd9eb7089af14fcfd544200009a73d 100644 --- a/tests/test_reports_balance.py +++ b/tests/test_reports_balance.py @@ -92,6 +92,8 @@ def test_mixed_balance(): ({'JPY': 10}, False), ({'JPY': 10, 'BRL': 0}, False), ({'JPY': 10, 'BRL': 20}, False), + ({'USD': '0.00015'}, True), + ({'EUR': '-0.00052'}, True), ]) def test_eq_zero(mapping, expected): balance = core.Balance(amounts_from_map(mapping)) @@ -108,6 +110,8 @@ def test_eq_zero(mapping, expected): ({'JPY': 10}, True), ({'JPY': 10, 'BRL': 0}, True), ({'JPY': 10, 'BRL': 20}, True), + ({'USD': '0.00015'}, True), + ({'EUR': '-0.00052'}, True), ]) def test_ge_zero(mapping, expected): balance = core.Balance(amounts_from_map(mapping)) @@ -123,6 +127,8 @@ def test_ge_zero(mapping, expected): ({'JPY': 10}, False), ({'JPY': 10, 'BRL': 0}, False), ({'JPY': 10, 'BRL': 20}, False), + ({'USD': '0.00015'}, True), + ({'EUR': '-0.00052'}, True), ]) def test_le_zero(mapping, expected): balance = core.Balance(amounts_from_map(mapping))