Esempio n. 1
0
 def test_two(self):
     assert "two" == num_to_word(2)
Esempio n. 2
0
 def test_one_thousand_two_hundred_thirty_two(self):
     assert "onethousandtwohundredthirtytwo" == num_to_word(1232)
Esempio n. 3
0
 def test_one(self):
     assert "one" == num_to_word(1)
Esempio n. 4
0
 def test_one_hundred_twenty_three(self):
     assert "onehundredtwentythree" == num_to_word(123)
Esempio n. 5
0
 def test_one_thousand(self):
     assert "onethousand" == num_to_word(1000)
Esempio n. 6
0
 def test_one_hundred(self):
     assert "onehundred" == num_to_word(100)
Esempio n. 7
0
 def test_three_hundred(self):
     assert "threehundred" == num_to_word(300)
Esempio n. 8
0
 def test_thirty(self):
     assert "thirty" == num_to_word(30)
Esempio n. 9
0
 def test_fifty_three(self):
     assert "fiftythree" == num_to_word(53)
Esempio n. 10
0
 def test_twenty_one(self):
     assert "twentyone" == num_to_word(21)
Esempio n. 11
0
 def test_twenty_two(self):
     assert "twentytwo" == num_to_word(22)
Esempio n. 12
0
 def test_twenty(self):
     assert "twenty" == num_to_word(20)
Esempio n. 13
0
 def test_nineteen(self):
     assert "nineteen" == num_to_word(19)
Esempio n. 14
0
 def test_eleven(self):
     assert "eleven" == num_to_word(11)
Esempio n. 15
0
 def test_ten(self):
     assert "ten" == num_to_word(10)
Esempio n. 16
0
from numtoword.numtoword import num_to_word

print(num_to_word(21))
print(num_to_word(121))
print(num_to_word(120))
print(num_to_word(2235))