Exemplo n.º 1
0
def test_to_roman_with_string():
    with pytest.raises(RomanNumeralsError):
        to_roman("Hello")
Exemplo n.º 2
0
def test_to_roman_with_float():
    with pytest.raises(RomanNumeralsError):
        to_roman(0.5)
Exemplo n.º 3
0
def test_to_roman_with_zero():
    with pytest.raises(RomanNumeralsError):
        to_roman(0)
Exemplo n.º 4
0
def test_to_roman_to_large():
    with pytest.raises(RomanNumeralsError):
        to_roman(5000)
Exemplo n.º 5
0
def test_to_roman():
    for arabic, roman in ARABIC_TO_ROMAN:
        assert to_roman(arabic) == roman