Skip to content

✅ improve tests to harden refactoring guardrails - #92

Merged
garak merged 1 commit into
p-chess:masterfrom
garak:fix-perft-test
Sep 30, 2026
Merged

garak merged 1 commit into
p-chess:masterfrom
garak:fix-perft-test

Conversation

@garak

@garak garak commented Sep 29, 2026

Copy link
Copy Markdown
Member

This is the first part of the new series of the decomposition of the Chess class
See #91

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Default perft traversal regresses performance, and checkmate counting lacks positive coverage.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Hardens perft tests before further Chess decomposition.

Changes:

  • Corrects depth-two perft expectations and FEN reuse.
  • Adds detailed move-statistic counting and assertions.
File Description
tests/​PerftTest.php Expands perft guardrails.
tests/​ChessPublicator.php Implements full perft counters.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/ChessPublicator.php Resolved
Comment thread tests/PerftTest.php Resolved
This is the first part of the new series of the decomposition of the Chess class

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The corrected and expanded expectations pass, and the implementation preserves state while accurately counting perft statistics.

Review effort: Balanced
Findings: None

Resolved since last review (2)

@garak
garak merged commit 0b311ed into p-chess:master Sep 30, 2026
5 checks passed
@garak
garak deleted the fix-perft-test branch September 30, 2026 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants