Repository navigation
test(claw): suggest's header parser and planner edges, all 16 sweep survivors killed - #10679
Merged
Merged
Conversation
…urvivors killed Six tests: the digit 9 and seven-digit numbers in a hunk header, each single-byte header fault refused without a write, both extension bytes of a .t27 path, a one-line diff range, hunks sharing one line read from the later side, and should_post(1). Closes #10678 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gHashTag
enabled auto-merge (squash)
October 18, 2026 21:53
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
This adds 6 tests to
specs/claw/suggest.t27. The mutation sweep of #10673 left 16 surviving mutants on its code lines, and these tests kill all 16.each_byte_of_the_extension_is_checkedreturn falsetoreturn trueon the'2'and the'7'(a.t37,a.t28)header_parse_takes_nine_and_seven_digits<= '9'to< '9'(@@ -9 +19,9 @@); the 7-digit limit> 7to>= 7on start and countheader_parse_refuses_each_single_byte_faultreturn falsetoreturn trueon the-, the empty base count, theand+before the head range, an 8-digit head count and the@@tail;p + 1top + 2on the tail. Each header is wrong in exactly one place, and none may writeouta_one_line_diff_range_covers_its_linedlen >= 1to> 1hunks_sharing_one_line_overlap_from_both_sidesf1 <= l2to<: lines 10-12 and 12-14, read from the later hunkone_comment_is_a_review>= 1to> 1Verification (Railway lab)
t27c test-report specs/claw/suggest.t27: 22 tests, 22 pass, 0 vacuous passes.t27b test: 22 tests pass.FAILline.seal --savefor suggest, thenseal --verifyon all 31 claw specs: 31 match, 0 differ.Closes #10678
🤖 Generated with Claude Code