Beispiel #1
0
def test_to_text__1d8_plus_2d6():
    atk = Attack('bite', [8, 6, 6])
    assert atk.to_text() == '2d6+1d8'
Beispiel #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'
Beispiel #3
0
def test_to_text__2d4():
    atk = Attack('bite', [4, 4])
    assert atk.to_text() == '2d4'
Beispiel #4
0
def test_to_text__1d2_1d10_1d8():
    atk = Attack('bite', [2, 10, 8])
    assert atk.to_text() == '1d2+1d8+1d10'
Beispiel #5
0
def test_to_text__1d2():
    atk = Attack('bite', [2])
    assert atk.to_text() == '1d2'