forked from s3lph/matemat
Full branch coverage in currency parsing.
This commit is contained in:
parent
cc8b7d091e
commit
bf50d65389
1 changed files with 6 additions and 0 deletions
|
@ -131,3 +131,9 @@ class TestCurrencyFormat(unittest.TestCase):
|
|||
parse_chf('13,37')
|
||||
with self.assertRaises(ValueError):
|
||||
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')
|
||||
|
|
Loading…
Reference in a new issue