Beispiel #1
0
def test_100to999():
    assert RomanNumberTextRepresentation.of(100) == "C"
    assert RomanNumberTextRepresentation.of(224) == "CCXXIV"
    assert RomanNumberTextRepresentation.of(336) == "CCCXXXVI"
    assert RomanNumberTextRepresentation.of(407) == "CDVII"
    assert RomanNumberTextRepresentation.of(608) == "DCVIII"
    assert RomanNumberTextRepresentation.of(888) == "DCCCLXXXVIII"
    assert RomanNumberTextRepresentation.of(999) == "CMXCIX"
Beispiel #2
0
def test_002():
    assert "II" == RomanNumberTextRepresentation.of(2)
Beispiel #3
0
def test_030to039():
    assert RomanNumberTextRepresentation.of(30) == "XXX"
    assert RomanNumberTextRepresentation.of(34) == "XXXIV"
    assert RomanNumberTextRepresentation.of(36) == "XXXVI"
    assert RomanNumberTextRepresentation.of(39) == "XXXIX"
Beispiel #4
0
def test_020to029():
    assert RomanNumberTextRepresentation.of(20) == "XX"
    assert RomanNumberTextRepresentation.of(24) == "XXIV"
    assert RomanNumberTextRepresentation.of(26) == "XXVI"
    assert RomanNumberTextRepresentation.of(29) == "XXIX"
Beispiel #5
0
def test_019():
    assert "XIX" == RomanNumberTextRepresentation.of(19)
Beispiel #6
0
def test_015to018():
    assert RomanNumberTextRepresentation.of(15) == "XV"
    assert RomanNumberTextRepresentation.of(16) == "XVI"
    assert RomanNumberTextRepresentation.of(17) == "XVII"
    assert RomanNumberTextRepresentation.of(18) == "XVIII"
Beispiel #7
0
def test_014():
    assert "XIV" == RomanNumberTextRepresentation.of(14)
Beispiel #8
0
def test_010():
    assert "X" == RomanNumberTextRepresentation.of(10)
Beispiel #9
0
def test_011():
    assert "XI" == RomanNumberTextRepresentation.of(11)
Beispiel #10
0
def test_008():
    assert "VIII" == RomanNumberTextRepresentation.of(8)
Beispiel #11
0
def test_009():
    assert "IX" == RomanNumberTextRepresentation.of(9)
Beispiel #12
0
def test_006():
    assert "VI" == RomanNumberTextRepresentation.of(6)
Beispiel #13
0
def test_005():
    assert "V" == RomanNumberTextRepresentation.of(5)
Beispiel #14
0
def test_004():
    assert "IV" == RomanNumberTextRepresentation.of(4)
Beispiel #15
0
def test_040to049():
    assert RomanNumberTextRepresentation.of(40) == "XL"
    assert RomanNumberTextRepresentation.of(44) == "XLIV"
    assert RomanNumberTextRepresentation.of(46) == "XLVI"
    assert RomanNumberTextRepresentation.of(49) == "XLIX"
Beispiel #16
0
def test_013():
    assert "XIII" == RomanNumberTextRepresentation.of(13)
Beispiel #17
0
def test_050to089():
    assert RomanNumberTextRepresentation.of(50) == "L"
    assert RomanNumberTextRepresentation.of(69) == "LXIX"
    assert RomanNumberTextRepresentation.of(75) == "LXXV"
    assert RomanNumberTextRepresentation.of(78) == "LXXVIII"
    assert RomanNumberTextRepresentation.of(89) == "LXXXIX"
Beispiel #18
0
def test_090to099():
    assert RomanNumberTextRepresentation.of(90) == "XC"
    assert RomanNumberTextRepresentation.of(94) == "XCIV"
    assert RomanNumberTextRepresentation.of(96) == "XCVI"
    assert RomanNumberTextRepresentation.of(99) == "XCIX"