Browse Source

Sum.parse_text: added test

Fabian Peter Hammerle 7 years ago
parent
commit
29f7a82e08
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/test_sum.py

+ 1 - 0
tests/test_sum.py

@@ -98,6 +98,7 @@ def test_mul(dividend, divisor, quotient):
     ['en_US.UTF-8', "2.50 EUR", finoex.Sum(2.5, 'EUR')],
     ['en_US.UTF-8', "2.50 €", finoex.Sum(2.5, 'EUR')],
     ['en_US.UTF-8', "US$-0.50", finoex.Sum(-0.5, 'USD')],
+    ['en_US.UTF-8', "\u20ac10.26", finoex.Sum(10.26, 'EUR')],
     ['en_US.UTF-8', "¥1.23", finoex.Sum(1.23, 'CNY')],
 ])
 def test_parse_text(loc, text, expected_sum):