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
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
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