示例#1
0
 def test_re_roll_keep_all(self, mock_input):
     actual_return = re_roll([6, 6, 6, 6, 6])
     expected_return = [6, 6, 6, 6, 6]
     self.assertEqual(expected_return, actual_return, "Player wishes to keep their whole hand.")
示例#2
0
 def test_re_roll_all(self, mock_input):
     actual_return = re_roll([1, 3, 4, 4, 6])
     expected_return = []
     self.assertEqual(expected_return, actual_return, "Player wishes to re-roll their entire hand.")
示例#3
0
 def test_re_roll_keep_die_last_4(self, mock_input):
     actual_return = re_roll([1, 3, 4, 4, 6])
     expected_return = [3, 4, 4, 6]
     self.assertEqual(expected_return, actual_return, "Player wishes to discard the first die in their hand.")
示例#4
0
 def test_re_roll_keep_die_first_3(self, mock_input):
     actual_return = re_roll([1, 3, 4, 4, 6])
     expected_return = [1, 3, 4]
     self.assertEqual(expected_return, actual_return, "Player wishes to keep the first three dice in their hand.")
示例#5
0
 def test_re_roll_keep_die_last_2(self, mock_input):
     actual_return = re_roll([1, 3, 4, 4, 6])
     expected_return = [4, 6]
     self.assertEqual(expected_return, actual_return, "Player wishes to keep the last two dice in their hand.")
示例#6
0
 def test_re_roll_keep_die_1_and_2(self, mock_input):
     actual_return = re_roll([4, 5, 6, 6, 6])
     expected_return = [4, 5]
     self.assertEqual(expected_return, actual_return, "Player wishes to keep the first 2 dice in their hand.")