Skip to content

Test that passages may share coordinates across levels - #154

Merged
mmacy merged 1 commit into
mainfrom
passage-contract-levels
Oct 16, 2026
Merged

mmacy merged 1 commit into
mainfrom
passage-contract-levels

Conversation

@mmacy

@mmacy mmacy commented Oct 16, 2026

Copy link
Copy Markdown
Owner

This adds one acceptance test to the passage contract (PR 153). A contract review found that the fixture can't catch a validate_adventure check that ignores the level: no passage lands on another level's cell with its own coordinates, and no destination shares coordinates with a far cell on a different level. The new test adds both cases and requires the document to validate clean. It's under the same xfail marker and passes today, because the checks don't exist yet.

A validate_adventure check that compared positions without the level
would refuse a passage landing on another level's cell with its own
coordinates, or on a cell whose coordinates match a far cell on a
different level. The fixture had neither case, so this test adds both
and requires them to validate clean.
@mmacy
mmacy merged commit ce9ab45 into main Oct 16, 2026
5 checks passed
@mmacy
mmacy deleted the passage-contract-levels branch October 16, 2026 01:45
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.

1 participant