Skip to content

Cover failure cases in gridDisk, gridRing, etc#1195

Merged
isaacbrodsky merged 2 commits into
uber:masterfrom
isaacbrodsky:grid-disk-coverage
Jul 22, 2026
Merged

Cover failure cases in gridDisk, gridRing, etc#1195
isaacbrodsky merged 2 commits into
uber:masterfrom
isaacbrodsky:grid-disk-coverage

Conversation

@isaacbrodsky

Copy link
Copy Markdown
Collaborator

As with #1193, I used Claude to generate examples that exercised the case that gridDisk, gridRingUnsafe, etc. recurse into another cell that then fails. They all require combinations on invalid cells (deleted K subsequence of a pentagon, or invalid digits).

@coveralls

coveralls commented Jul 22, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 99.363% (+0.2%) from 99.176% — isaacbrodsky:grid-disk-coverage into uber:master

Comment thread src/apps/testapps/testGridRingUnsafe.c Outdated
"Should return an error when starting at a pentagon");
}

TEST(onPentagon) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: give them different test names

Suggested change
TEST(onPentagon) {
TEST(onPentagon_failed) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, thanks!

@isaacbrodsky
isaacbrodsky merged commit b68f905 into uber:master Jul 22, 2026
47 of 48 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.

4 participants