Exemple #1
0
 def test_roll_die_negative_side_zero_roll(self):
     self.assertEqual(roll_die(-1, 0), 0)
Exemple #2
0
 def test_bigger_than_minimum(self):
     self.assertTrue(roll_die(3, 6) >= 3)
Exemple #3
0
 def test_roll_die_pol(self):
     self.assertTrue(roll_die(3, 6) <= 18)
Exemple #4
0
 def test_roll_die_positive_side_zero_roll(self):
     self.assertEqual(roll_die(4, 0), 0)
Exemple #5
0
 def test_roll_die_positive_side_negative_roll(self):
     self.assertEqual(roll_die(1, -3), 0)
Exemple #6
0
 def test_roll_die_zero_side_zero_roll(self):
     self.assertEqual(roll_die(0, 0), 0)