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