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