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
@@ -25,7 +25,7 @@ class Num2WordsENTest(TestCase):
|
||||
|
||||
def test_cardinal_for_float_number(self):
|
||||
# issue 24
|
||||
self.assertEqual(num2words(12.50), "twelve point five zero")
|
||||
self.assertEqual(num2words(12.5), "twelve point five")
|
||||
self.assertEqual(num2words(12.51), "twelve point five one")
|
||||
self.assertEqual(num2words(12.53), "twelve point five three")
|
||||
self.assertEqual(num2words(12.59), "twelve point five nine")
|
||||
|
||||
Reference in New Issue
Block a user