Skip to content

Path math and indexing unit tests for grid/path materializer #232

@jasonappah

Description

@jasonappah

Objective: Add high-confidence tests for grid/index math and path materialization to prevent off-by-one and orientation bugs.

Context:

  • Target src/server/robot/grid-indices.ts, src/server/robot/path-materializer.ts, and src/common/spline.ts.
  • Include corner/castle/edge cases and invalid inputs.

Acceptance:

  • New tests (e.g., under src/server/robot/test/) cover grid conversions, path generation length/shape, and boundary conditions.
  • Tests run in CI and pass deterministically.
  • Bugs found during test writing are fixed with clear commits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    D2Medium DifficultyP3High PriorityS26Current relevant issue that should be worked on in the spring 2026 semester

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions