def test_roll_die_one_side_one_time(self): expected = 1 actual = dnd.roll_die(1, 1) self.assertEqual(expected, actual)
def test_roll_die_six_sides_twice(self, _): actual = dnd.roll_die(2, 6) self.assertEqual(actual, 8)
def test_roll_die_many_times(self, _): actual = dnd.roll_die(10, 15) self.assertEqual(actual, 77)
def test_roll_die_single_roll_multiple_times_random_value(self, mock_randint): actual = dnd.roll_die(7, 6) self.assertEqual(actual, 21)
def test_roll_die_six_sides_once(self, _): actual = dnd.roll_die(1, 6) self.assertEqual(actual, 3)
def test_roll_die_single_roll_three_times_different_value(self, mock_randint): actual = dnd.roll_die(3, 3) self.assertEqual(actual, 6)
def test_roll_die_single_roll_two_times_same_value(self, mock_randint): actual = dnd.roll_die(2, 3) self.assertEqual(actual, 6)
def test_roll_ten_sided_die_ten_times(self): actual = dnd.roll_die(10, 10) self.assertGreaterEqual(actual, 10) self.assertLessEqual(actual, 100)
def test_roll_six_sided_die_twice(self): actual = dnd.roll_die(2, 6) self.assertGreaterEqual(actual, 2) self.assertLessEqual(actual, 12)
def test_roll_six_sided_die_once(self): actual = dnd.roll_die(1, 6) self.assertGreaterEqual(actual, 1) self.assertLessEqual(actual, 6)