Full branch coverage in currency parsing.

This commit is contained in:
s3lph 2018-08-21 01:13:35 +02:00
parent cc8b7d091e
commit bf50d65389

View file

@ -131,3 +131,9 @@ class TestCurrencyFormat(unittest.TestCase):
parse_chf('13,37') parse_chf('13,37')
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
parse_chf('CHF 13,37') parse_chf('CHF 13,37')
def test_parse_frac_negative(self):
with self.assertRaises(ValueError):
parse_chf('13.-7')
with self.assertRaises(ValueError):
parse_chf('CHF 13.-7')