Skip to content

Add tests for legacy Node.is_subgame_root#624

Merged
tturocy merged 5 commits intogambitproject:masterfrom
d-kad:subgame-tests-issue_583
Nov 18, 2025
Merged

Add tests for legacy Node.is_subgame_root#624
tturocy merged 5 commits intogambitproject:masterfrom
d-kad:subgame-tests-issue_583

Conversation

@d-kad
Copy link
Copy Markdown
Contributor

@d-kad d-kad commented Nov 18, 2025

This PR introduces an improved test suite for the legacy Node.is_subgame_root method. This work serves as a preparatory step for the refactoring the legacy subgames detector using a novel approach.

The test suite covers several key scenarios to establish a clear baseline of the current implementation's behavior:

  • Games where is_subgame_root behaves correctly (e02.efg, wichardt.efg, subgames.efg).

  • A game with an absent-minded information set (AM-driver-subgame.efg) where the legacy method is known to fail.

The failing test is marked with @pytest.mark.xfail to formally document this limitation, as requested.

Closes #583

@tturocy tturocy merged commit 2eb31d9 into gambitproject:master Nov 18, 2025
13 of 15 checks passed
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.

ENH: Develop tests for Node.is_subgame_root

2 participants