예제 #1
0
def test_int_to_text_9999999999():
    assert int_to_text(
        9999999999
    ) == "nine billions nine hundreds ninety nine millions nine hundreds ninety nine thousands nine hundreds ninety nine"
예제 #2
0
def test_int_to_text_0():
    assert int_to_text(0) == "zero"
예제 #3
0
def test_int_to_text_not_int():
    assert int_to_text("364") == "invalid number"
예제 #4
0
def test_int_to_text_wrong_input():
    assert int_to_text(-1) == "invalid number"
예제 #5
0
def test_int_to_text_type():
    assert type(int_to_text(100)) is str
예제 #6
0
def test_int_to_text_negative_number():
    assert int_to_text(-1) == "invalid number"
예제 #7
0
def test_int_to_text_xxxxx():
    assert int_to_text(12345) == "twelve thousands three hundreds forty five"
예제 #8
0
def test_int_to_text_too_big():
    assert int_to_text(1000000000000000009) == "999+ quadrillions+"
예제 #9
0
def test_int_to_text_xxx():
    assert int_to_text(125) == "one hundred twenty five"
예제 #10
0
def test_int_to_text_x00():
    assert int_to_text(400) == "four hundreds"
예제 #11
0
def test_int_to_text_0xx():
    assert int_to_text(72) == "seventy two"
예제 #12
0
def test_int_to_text_0x0():
    assert int_to_text(40) == "forty"
예제 #13
0
def test_int_to_text_1to19():
    assert int_to_text(12) == "twelve"