def test_dice_from_string(self): d = Dice.from_string('2d6') assert type(d) is Dice assert d.amount == 2 and d.sides == 6 w = Dice.from_string('2w6') assert type(w) is WildDice assert w.amount == 2 and w.sides == 6 u = Dice.from_string('2u6') assert type(u) is FudgeDice assert u.amount == 2 and u.sides == 6
def test_dice_from_string(self): d = Dice.from_string('2d6') assert type(d) is Dice assert d.amount == 2 and d.sides == 6 w = Dice.from_string('2w6') assert type(w) is WildDice assert w.amount == 2 and w.sides == 6 u = Dice.from_string('2u6') assert type(u) is FudgeDice assert u.amount == 2 and u.sides == 6
def test_dice_from_string(self): d = Dice.from_string('2d6') assert d.amount == 2 and d.sides == 6
def test_dice_from_string(self): d = Dice.from_string('2d6') assert d.amount == 2 and d.sides == 6