test(media): match the overflow placeholder by const, not substring (gadfly #8)
CI / Tidy (pull_request) Successful in 9m25s
CI / Build & Test (pull_request) Successful in 9m49s

ragnaros/qwen3.6-27b noted TestNormalizeOverCount matched 'omitted' by substring;
the test is in-package, so assert == imageOverflowPlaceholder instead — robust to
wording changes. No behavior change.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-28 18:33:01 -04:00
parent 52bb910f4d
commit 70b7aebd86
+1 -1
View File
@@ -173,7 +173,7 @@ func TestNormalizeOverCount(t *testing.T) {
case llm.ImagePart:
imgs = append(imgs, v)
case llm.TextPart:
if strings.Contains(v.Text, "omitted") {
if v.Text == imageOverflowPlaceholder {
placeholders++
}
}