Skip to content

Commit

Permalink
connect: Fix test file
Browse files Browse the repository at this point in the history
  • Loading branch information
yunchih committed Nov 1, 2017
1 parent 3ce3c99 commit e86dc77
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions exercises/connect/connect_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@
]


class SieveTest(unittest.TestCase):
class ConnectTest(unittest.TestCase):
def test_game(self):
for t in testcases:
game = ConnectGame(t["board"])
for testcase in testcases:
game = connect.ConnectGame(testcase["board"])
winner = game.get_winner()
expected = t["winner"] if t["winner"] else "None"
expected = testcase["winner"] if testcase["winner"] else "None"
got = winner if winner else "None"
self.assertEqual(winner, t["winner"],
self.assertEqual(winner, testcase["winner"],
"Test failed: %s, expected winner: %s, got: %s"
% (t["description"], expected, got))
% (testcase["description"], expected, got))


if __name__ == '__main__':
Expand Down

0 comments on commit e86dc77

Please sign in to comment.