Fix typo 'seperator' on source code

This commit is contained in:
Ernesto Rodriguez Ortiz
2019-01-19 16:53:07 -05:00
parent c1292c1499
commit 2eee037648
16 changed files with 56 additions and 56 deletions

View File

@@ -71,54 +71,54 @@ class Num2WordsENTest(TestCase):
def test_to_currency(self):
self.assertEqual(
num2words('38.4', lang='en', to='currency', seperator=' and',
num2words('38.4', lang='en', to='currency', separator=' and',
cents=False, currency='USD'),
"thirty-eight dollars and 40 cents"
)
self.assertEqual(
num2words('0', lang='en', to='currency', seperator=' and',
num2words('0', lang='en', to='currency', separator=' and',
cents=False, currency='USD'),
"zero dollars and 00 cents"
)
self.assertEqual(
num2words('1.01', lang='en', to='currency', seperator=' and',
num2words('1.01', lang='en', to='currency', separator=' and',
cents=True, currency='USD'),
"one dollar and one cent"
)
self.assertEqual(
num2words('4778.00', lang='en', to='currency', seperator=' and',
num2words('4778.00', lang='en', to='currency', separator=' and',
cents=True, currency='USD', adjective=True),
'four thousand, seven hundred and seventy-eight US dollars'
' and zero cents')
self.assertEqual(
num2words('4778.00', lang='en', to='currency', seperator=' and',
num2words('4778.00', lang='en', to='currency', separator=' and',
cents=True, currency='USD'),
'four thousand, seven hundred and seventy-eight dollars and'
' zero cents')
self.assertEqual(
num2words('1.1', lang='en', to='currency', seperator=' and',
num2words('1.1', lang='en', to='currency', separator=' and',
cents=True, currency='MXN'),
"one peso and ten cents"
)
self.assertEqual(
num2words('158.3', lang='en', to='currency', seperator=' and',
num2words('158.3', lang='en', to='currency', separator=' and',
cents=True, currency='MXN'),
"one hundred and fifty-eight pesos and thirty cents"
)
self.assertEqual(
num2words('2000.00', lang='en', to='currency', seperator=' and',
num2words('2000.00', lang='en', to='currency', separator=' and',
cents=True, currency='MXN'),
"two thousand pesos and zero cents"
)
self.assertEqual(
num2words('4.01', lang='en', to='currency', seperator=' and',
num2words('4.01', lang='en', to='currency', separator=' and',
cents=True, currency='MXN'),
"four pesos and one cent"
)