diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-18 21:23:13 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-18 21:24:33 +0100 |
commit | 7641c1a66caf87858255320d88673223f0dd1f31 (patch) | |
tree | cdbfba265a670cf6b7926f149b12b4c07db8ac67 /tests | |
parent | c3a74e694cd57179460294244f060dd6892d806d (diff) | |
download | taler-util-7641c1a66caf87858255320d88673223f0dd1f31.tar.gz taler-util-7641c1a66caf87858255320d88673223f0dd1f31.tar.bz2 taler-util-7641c1a66caf87858255320d88673223f0dd1f31.zip |
fix infinite loop in stringify and add test case
Also bump to 0.6.2
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_amount.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_amount.py b/tests/test_amount.py index 67d9844..a4043b7 100755 --- a/tests/test_amount.py +++ b/tests/test_amount.py @@ -68,3 +68,4 @@ class TestAmount(TestCase): self.assertEqual(self.amount.stringify(3), 'TESTKUDOS:0.000') self.amount.add(Amount('TESTKUDOS', 2, 100)) self.assertEqual(self.amount.stringify(6), 'TESTKUDOS:2.000001') + self.assertEqual(Amount("TESTKUDOS", value=5, fraction=9000000).stringify(), 'TESTKUDOS:5.09') |