Beispiel #1
0
def test_restore_to_max():
    hp = HP(character)
    hp.damage(4)
    assert hp.restore(5) == 4
    assert hp.value == 11
Beispiel #2
0
def test_restore():
    hp = HP(character)
    hp.damage(6)
    assert hp.restore(5) == 5
    assert hp.value == 10