Exemplo n.º 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"
Exemplo n.º 2
0
def test_int_to_text_0():
    assert int_to_text(0) == "zero"
Exemplo n.º 3
0
def test_int_to_text_not_int():
    assert int_to_text("364") == "invalid number"
Exemplo n.º 4
0
def test_int_to_text_wrong_input():
    assert int_to_text(-1) == "invalid number"
Exemplo n.º 5
0
def test_int_to_text_type():
    assert type(int_to_text(100)) is str
Exemplo n.º 6
0
def test_int_to_text_negative_number():
    assert int_to_text(-1) == "invalid number"
Exemplo n.º 7
0
def test_int_to_text_xxxxx():
    assert int_to_text(12345) == "twelve thousands three hundreds forty five"
Exemplo n.º 8
0
def test_int_to_text_too_big():
    assert int_to_text(1000000000000000009) == "999+ quadrillions+"
Exemplo n.º 9
0
def test_int_to_text_xxx():
    assert int_to_text(125) == "one hundred twenty five"
Exemplo n.º 10
0
def test_int_to_text_x00():
    assert int_to_text(400) == "four hundreds"
Exemplo n.º 11
0
def test_int_to_text_0xx():
    assert int_to_text(72) == "seventy two"
Exemplo n.º 12
0
def test_int_to_text_0x0():
    assert int_to_text(40) == "forty"
Exemplo n.º 13
0
def test_int_to_text_1to19():
    assert int_to_text(12) == "twelve"