Ejemplo n.º 1
0
 def test_can_return_1_if_player_1_won(self):
     output = solver(TESTS_PATH + "valid/player_won/player1_won.txt")
     self.assertEqual("1", output)
Ejemplo n.º 2
0
 def test_can_return_0_if_game_drawn(self):
     output = solver(TESTS_PATH + "valid/draw.txt")
     self.assertEqual("0", output)
Ejemplo n.º 3
0
 def test_can_return_3_if_incomplete_game(self):
     output = solver(TESTS_PATH + "valid/incomplete_game.txt")
     self.assertEqual("3", output)
Ejemplo n.º 4
0
 def test_can_return_4_if_illegal_continue(self):
     output = solver(TESTS_PATH + "error/illegal_continue.txt")
     self.assertEqual("4", output)
Ejemplo n.º 5
0
 def test_can_return_6_if_illegal_column(self):
     output = solver(TESTS_PATH + "error/illegal_column.txt")
     self.assertEqual("6", output)
Ejemplo n.º 6
0
 def test_can_return_7_if_illegal_game(self):
     output = solver(TESTS_PATH + "error/illegal_game.txt")
     self.assertEqual("7", output)
Ejemplo n.º 7
0
 def test_can_return_8_if_invalid_file(self):
     output = solver(TESTS_PATH + "error/invalid_file.txt")
     self.assertEqual("8", output)