Esempio n. 1
0
def test_fudge():
    roller = Roller("fake api key")
    for x in range(25000):
        result = roller.roll(nb=4, sides='F', modifier=0)
        for dice in result.dicelist:
            assert dice in (' ', '+', '-')
        assert -4 <= result.sum <= 4
Esempio n. 2
0
def test_fudge():
    roller = Roller("fake api key")
    for x in range(25000):
        result = roller.roll(nb=4, sides="F", modifier=0)
        for dice in result.dicelist:
            assert dice in (" ", "+", "-")
        assert -4 <= result.sum <= 4
Esempio n. 3
0
def test_d6():
    roller = Roller("fake api key")
    for x in range(25000):
        result = roller.roll(nb=2, sides=6, modifier=0)
        assert 2 <= result.sum <= 12
Esempio n. 4
0
def test_d6():
    roller = Roller("fake api key")
    for x in range(25000):
        result = roller.roll(nb=2, sides=6, modifier=0)
        assert 2 <= result.sum <= 12