From 41dea5763b242c1768a7f51d19dc6dc4118e6339 Mon Sep 17 00:00:00 2001 From: nesquena-hermes Date: Wed, 23 Sep 2026 06:23:21 +0000 Subject: [PATCH] test(#7708): point the chunk-boundary assertion at the normalized scan string The PR moved the MEDIA: scan onto a backtick-normalized copy, so the guard is now matchEnd===normalized.length. Behaviour is unchanged (Codex drove the vendored parser across chunk splits); this was a stale source assertion that made the PR's own CI red on shard 4. --- tests/test_smd_media_in_stream.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_smd_media_in_stream.py b/tests/test_smd_media_in_stream.py index d123ef12..49024d2d 100644 --- a/tests/test_smd_media_in_stream.py +++ b/tests/test_smd_media_in_stream.py @@ -386,7 +386,10 @@ class TestSmdMediaInStream(unittest.TestCase): idx = MESSAGES_JS.index("function _smdMediaAwareAddText") block = MESSAGES_JS[idx:idx + 6500] self.assertIn("function _smdMediaRefHasReliableBoundary", MESSAGES_JS) - self.assertIn("matchEnd===combined.length", block) + # #7708: the scan now runs over `normalized` (backtick-wrapped refs + # rewritten to bare form first); the chunk-end boundary guard is the + # same check against that string. + self.assertIn("matchEnd===normalized.length", block) self.assertIn("!_smdMediaRefHasReliableBoundary(m[1])", block) self.assertIn("unmatchedTail = candidate", block)