Add white pawn move gen test
All checks were successful
Python tests (make) / test (push) Successful in 10s
All checks were successful
Python tests (make) / test (push) Successful in 10s
This commit is contained in:
@@ -23,10 +23,10 @@ class ChessLibTestBase(unittest.TestCase):
|
||||
self.board = Board()
|
||||
|
||||
|
||||
def load(self, fen: str):
|
||||
rc = load_fen(self.board, fen)
|
||||
self.assertEqual(rc, 0, f"load_fen failed rc={rc} for FEN: {fen}")
|
||||
return self.board
|
||||
def load_fen(self, fen, board=None):
|
||||
if board:
|
||||
return load_fen(board, fen)
|
||||
return load_fen(self.board, fen)
|
||||
|
||||
|
||||
def gen(self, captures_only: bool = False, cap: int = 256):
|
||||
|
||||
Reference in New Issue
Block a user