mirror of
https://github.com/bblaz/num2words.git
synced 2025-12-06 06:42:25 +00:00
Fix bugs in the float precision and the currency, increase test coverage (#134)
* Fix some bugs in the float precision and the currency, increase test coverage. Ref: issue #112 #113 * Update README.rst
This commit is contained in:
committed by
GitHub
parent
5a131fedc6
commit
1c699d1bb4
@@ -56,7 +56,9 @@ class Num2WordsDETest(TestCase):
|
||||
self.assertEqual(num2words(4000000000, lang='de'), "vier milliarden")
|
||||
|
||||
def test_cardinal_for_decimal_number(self):
|
||||
self.assertEqual(num2words(3.486, lang='de'), "drei Komma vier acht")
|
||||
self.assertEqual(
|
||||
num2words(3.486, lang='de'), "drei Komma vier acht sechs"
|
||||
)
|
||||
|
||||
def test_ordinal_for_negative_numbers(self):
|
||||
self.assertRaises(TypeError, num2words, -12, ordinal=True, lang='de')
|
||||
|
||||
Reference in New Issue
Block a user