From 08fdabd5e9fd63bc8842ac5a599d12e20f21123b Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sun, 22 Nov 2026 14:18:40 -0500 Subject: [PATCH] test(7736): the range case no longer puts "steps" before the first id "step" is in the other-numbering word list ("step #3" is a position in a plan), so "steps #5110" correctly stays plain. The case now tests the range alone, and a second case pins the "step #3" reading. Co-Authored-By: Claude Opus 5.5 --- tests/test_record_ref_links.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_record_ref_links.py b/tests/test_record_ref_links.py index 89d90428..942f2ca5 100644 --- a/tests/test_record_ref_links.py +++ b/tests/test_record_ref_links.py @@ -31,7 +31,10 @@ def _refs(notes=(), milestones=(), rules=()): @pytest.mark.parametrize(("text", "expected"), [ ("see #123", _refs(notes={123})), - ("steps #5110–#5119 shipped", _refs(notes={5110, 5119})), + ("shipped #5110–#5119", _refs(notes={5110, 5119})), + # "step" names a position in a plan ("step #3"), the same reading the + # message parser uses, so a #N right after it stays plain. + ("step #3 of the plan", _refs()), ("(#4286) and #4290.", _refs(notes={4286, 4290})), ("#v2 is a tag", _refs()), ("a colour #123abc", _refs()),