def test_game3(self):
     result = guess_game.run_guess(15,4)
     self.assertFalse(result)
コード例 #2
0
 def test_game(self):
     answer = 5
     guess = 5
     result = guess_game.run_guess(answer, guess)
     self.assertTrue(result)
 def test_game2(self):
     result = guess_game.run_guess(0,5)
     self.assertFalse(result)        
 def test_game(self):
     result = guess_game.run_guess(5,5)
     self.assertTrue(result)
コード例 #5
0
 def test_input_wrong_guess(self):
     result = guess_game.run_guess(5, 3, 1)
     self.assertFalse(result)
コード例 #6
0
 def test_input(self):
     result = guess_game.run_guess(5, 5, 1)
     self.assertTrue(result)
コード例 #7
0
 def test_input_wrong_number(self):
     result = guess_game.run_guess(11, 7, 1)
     self.assertFalse(result)