Пример #1
0
def test_to_text__1d8_plus_2d6():
    atk = Attack('bite', [8, 6, 6])
    assert atk.to_text() == '2d6+1d8'
Пример #2
0
def test_to_text__1d2_3d10_2d8():
    atk = Attack('bite', [2, 10, 10, 10, 8, 8])
    assert atk.to_text() == '1d2+2d8+3d10'
Пример #3
0
def test_to_text__2d4():
    atk = Attack('bite', [4, 4])
    assert atk.to_text() == '2d4'
Пример #4
0
def test_to_text__1d2_1d10_1d8():
    atk = Attack('bite', [2, 10, 8])
    assert atk.to_text() == '1d2+1d8+1d10'
Пример #5
0
def test_to_text__1d2():
    atk = Attack('bite', [2])
    assert atk.to_text() == '1d2'