test-tools: for-line escape case spells the expected backslash-u with chr(92)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Eureka 2026-10-23 20:26:54 +02:00
commit 0acb7c9286

View file

@ -1067,7 +1067,7 @@ check("window: Unavailable at 3 s deadline, answered at once, prints the note (t
r.returncode == 0 and o is not None and "(tool)" in o.get("additionalContext", ""), r.stdout[:200])
# fix batch: the For line is inert unless the id is plain ASCII
for lab, want_line in (("a<b", 'For "t:ruling:a\u003cb":'), ("na\u00efve", 'For "t:ruling:na\u00efve":'), ("plain-1", "For t:ruling:plain-1:")):
for lab, want_line in (("a<b", 'For "t:ruling:a' + chr(92) + 'u003cb":'), ("na\u00efve", 'For "t:ruling:na\u00efve":'), ("plain-1", "For t:ruling:plain-1:")):
r, calls, ms = run(hook([doc("ruling", lab, "Title")]))
check("for-line: id %r is written %s" % (lab, want_line), held(r) and reason(r).split("\n")[1] == want_line, reason(r).split("\n")[1] if r.stdout else r.stdout)