Exemplo n.º 1
0
 def test_count_one_piece(self):
     row = [self.hole] * 7
     board = [row[:] for i in xrange(7)]
     board[3][3] = self.piece
     expected = 1
     result = solver.count_pieces(board)
     self.assertEqual(expected, result)
Exemplo n.º 2
0
 def test_count_one_piece(self):
     row = [self.hole]*7
     board = [row[:] for i in xrange(7)]
     board[3][3] = self.piece 
     expected = 1
     result = solver.count_pieces(board)
     self.assertEqual(expected, result)
Exemplo n.º 3
0
 def test_count_32_pieces_in_starting_board(self):
     board = solver.create_board()
     expected = 32
     result = solver.count_pieces(board)
     self.assertEqual(expected, result)
Exemplo n.º 4
0
 def test_count_32_pieces_in_starting_board(self):
     board = solver.create_board()
     expected = 32
     result = solver.count_pieces(board)
     self.assertEqual(expected, result)