Esempio n. 1
0
 def test_is_out_of_bounds_returns_true_when_negative_positions(self):
     board = Board(3, 3)
     
     self.assertTrue(board.is_out_of_bounds(-1, 2))
Esempio n. 2
0
 def test_is_out_of_bounds_returns_true_when_position_too_high(self):
     board = Board(3, 3)
     
     self.assertTrue(board.is_out_of_bounds(5, 5))
Esempio n. 3
0
 def test_is_out_of_bounds_returns_false_when_in_bounds(self):
     board = Board(3, 3)
     
     self.assertFalse(board.is_out_of_bounds(2, 1))