Results::set() asserts against grid_[x + y * length_], but Results has no grid_ member. Release builds hide the expression through NDEBUG; Debug compilation fails.
The assertion should check the output string or otherwise express the intended invariant using members that exist.
Proposed work
Correct the assertion to inspect the rendered output buffer.
Review the intended duplicate-write invariant.
Add a Debug-build test that renders a valid solution.
Acceptance criteria
The project builds in Debug mode.
Rendering a valid solution passes assertions.
A deliberately conflicting render is covered if practical.
The fix is committed separately from performance work.
Reference
main.cc:82-87
## Background
`Results::set()` asserts against `grid_[x + y * length_]`, but `Results` has no `grid_` member. Release builds hide the expression through `NDEBUG`; Debug compilation fails.
The assertion should check the output string or otherwise express the intended invariant using members that exist.
## Proposed work
- Correct the assertion to inspect the rendered output buffer.
- Review the intended duplicate-write invariant.
- Add a Debug-build test that renders a valid solution.
## Acceptance criteria
- The project builds in Debug mode.
- Rendering a valid solution passes assertions.
- A deliberately conflicting render is covered if practical.
- The fix is committed separately from performance work.
## Reference
- `main.cc:82-87`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Background
Results::set()asserts againstgrid_[x + y * length_], butResultshas nogrid_member. Release builds hide the expression throughNDEBUG; Debug compilation fails.The assertion should check the output string or otherwise express the intended invariant using members that exist.
Proposed work
Acceptance criteria
Reference
main.cc:82-87