Skip to content

Expand scenario validation errors and examples #3

Description

@aribradshaw

Goal

Make scenario validation failures easier for first-time contributors to diagnose.

Suggested scope

Add table-driven tests for unknown state abbreviations, invalid polling totals, missing sources, invalid seeds, and mismatched electoral-vote totals. Improve validation messages where a test shows ambiguity.

Acceptance criteria

  • Each invalid field produces one specific, actionable message.
  • The validator checks declared electoral votes against the supplied state catalog.
  • Tests remain pure and do not import GameEngine.
  • The scenario guide shows one invalid and one corrected example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomersscenarioHistorical or alternate campaign content

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions