Skip to content

Commit

Permalink
Add parse test
Browse files Browse the repository at this point in the history
  • Loading branch information
sheiun committed Oct 24, 2020
1 parent 999eb0b commit 0590a9b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ def test_roll(self):
def test_base64(self):
dice = Dice("bzz").roll(base64=True)
self.assertIn("base64", dice)

def test_parse(self):
dices = Dice.parse("(dice20) (dice8)")
self.assertTrue(20 >= dices[0]["result"] >= 1)
self.assertTrue(8 >= dices[1]["result"] >= 1)

0 comments on commit 0590a9b

Please sign in to comment.