Exemplo n.º 1
0
 def testDifferentDimensions(self):
     expected_board = [[0] *3] *4
     observed_board = Board.create_empty_board(3, 4)
     self.assertEqual(expected_board, observed_board)
Exemplo n.º 2
0
 def testNormalDimensions(self):
     expected_board = [[0] *10] *10
     observed_board = Board.create_empty_board(10, 10)
     self.assertEqual(expected_board, observed_board)
Exemplo n.º 3
0
 def testSmallDimensions(self):
     expected_board = [[0]]
     observed_board = Board.create_empty_board(1, 1)
     self.assertEqual(expected_board, observed_board)