def test_3d3(self): out = fiver.is_valid(self.board2, self.piece3, use_blobbing=True) np.testing.assert_array_equal(out, np.array([True, False], dtype=bool))
def test_single3(self): out = fiver.is_valid(self.board2, self.piece1, use_blobbing=True) self.assertTrue(out)
def test_invalid2(self): out = fiver.is_valid(self.board1, self.piece2, use_blobbing=True) self.assertFalse(out)
def test_single1(self): out = fiver.is_valid(self.board1, self.piece1, use_blobbing=False) self.assertTrue(out)