Commit 3754744
committed
test(samefileanchor): round-3 review fixes for helpers_test.go
- Promote assert.Contains/NotContains to require in TestInsertDisambiguated
for the pre-seeded-collision sub-case: both checks are preconditions for
the follow-up insertDisambiguated call; if either fails the subsequent
state is wrong and the fix-3 assertion can give a false pass.
- Add assert.Equal(slugsAST, slugsL0) to TestCollectSlugs so the stated
invariant ("both paths produce the same slug set", rule.go comment) is
directly verified, not just implied by per-key Contains checks.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LadV5k6SsAQEgoVQmWVQh31 parent c87ca75 commit 3754744
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
| 107 | + | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
289 | 290 | | |
0 commit comments