File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
3- import unittest
4-
53import sys
4+ import unittest
65
76from dice_notation .dice import Rollable
87from dice_notation .parser import DiceParser
@@ -84,7 +83,7 @@ def test_max(self):
8483 """
8584 Tests that a simple dice notation can be parsed.
8685 """
87- dice = self .parser .parse (str (sys .maxsize )+ "d" + str (sys .maxsize ))
86+ dice = self .parser .parse (str (sys .maxsize ) + "d" + str (sys .maxsize ))
8887
8988 self .assertEqual (sys .maxsize , dice .quantity )
9089 self .assertEqual (sys .maxsize , dice .sides )
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ def test_mixed_subNumber(self):
5656
5757 self .assertTrue (isinstance (result , Rollable ))
5858
59+
5960class TestMultipleRoll (unittest .TestCase ):
6061 """
6162 Tests that simple dice expressions can be parsed into the Dice class.
Original file line number Diff line number Diff line change @@ -97,11 +97,11 @@ def test_singleDie_multipleRoll(self):
9797 self .assertIsNotNone (dice .roll ())
9898
9999
100-
101100class TestRollInvalid (unittest .TestCase ):
102101 """
103102 Tests the Dice roll method.
104103 """
104+
105105 # TODO: Check if these cases should throw exceptions
106106
107107 def test_negativeQuantity (self ):
@@ -134,4 +134,4 @@ def test_noneSides(self):
134134 """
135135 dice = RollableDice (1 , None )
136136
137- self .assertIsNone (dice .roll ())
137+ self .assertIsNone (dice .roll ())
You can’t perform that action at this time.
0 commit comments