From 70b7aebd86ec66327fa0a2935bd62bd9c51a2203 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Sun, 28 Jun 2026 18:33:01 -0400 Subject: [PATCH] test(media): match the overflow placeholder by const, not substring (gadfly #8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- media/media_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/media_test.go b/media/media_test.go index 8b37319..0a310f2 100644 --- a/media/media_test.go +++ b/media/media_test.go @@ -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++ } }