예제 #1
0
def test_xp_level_up_using_decimal():
    xp = XP(1)
    xp.increase(1.0 / 4)
    assert xp.xp == 75
예제 #2
0
def test_xp_level_up():
    xp = XP(1)
    xp.increase(1)
    assert xp.xp == 300
예제 #3
0
def test_xp_level_up_even_more():
    xp = XP(5)
    xp.increase(2)
    assert xp.xp == 500