Add white pawn move gen test
All checks were successful
Python tests (make) / test (push) Successful in 10s

This commit is contained in:
2025-08-17 18:53:15 -04:00
parent 5b4dc74681
commit 2028d7fa12
3 changed files with 98 additions and 13 deletions

View File

@@ -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):