upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/cpp_unwind_test.cpp
diff options
context:
space:
mode:
authornoosko21-a11y <251621186+noosko21-a11y@users.noreply.github.com>2026-11-23 23:43:20 +0100
committerCh1mpleo <vietanh051203@gmail.com>2026-11-25 19:01:54 +0700
commit41639e8997e06e474111059e512bebd9aff5b84e (patch)
treef40c3e776f51db7c8cdcd70a4e3e1c1ae9269313 /runtime/test/cpp_unwind_test.cpp
parent0d80bc5df7c873f40965f34f185cb96913786765 (diff)
tests/docs: read an indented code block as code, not prose
tests/semantic/README.md shows two commands in an indented code block (four spaces, no fence) whose first forty characters are identical: python -I scripts/run_semantic_tests.py tests/semantic python -I scripts/run_semantic_tests.py tests/semantic -j 4 -p 'test_image_*.py' repeated_lines() skips fenced blocks and said so in its own docstring ("neither a list item, table row, heading or code"), but it only recognised the fenced kind, so the two command lines were compared as prose and the check went red on main: AssertionError: Lists differ: ['tests/semantic/README.md:5 and :7'] != [] The same-merge habit is what this file exists to catch, so the report was worth a look, but a command block is not a sentence kept twice and editing the README to dodge the check would leave the next indented block to trip it again. An indented line is now skipped the way a fenced one already was: four spaces (Markdown's code block) or a tab. Measured over every tracked Markdown file, old check against new, so this does not quietly buy green by hiding duplicates: files scanned 104 lines scanned 37,350 lines indented 4+ 1,375 reported by both 0 reported by old only 1 tests/semantic/README.md:5:7 (the false positive) reported by new only 0 The one report the fix removes is the one that was wrong. No real duplicate was lost. The test gains the case directly: an indented two-command block is not reported, and a tab-indented one is not either. python -I tests/test_docs_repeated_lines.py -> Ran 3 tests, OK (main: Ran 2, FAILED at tests/semantic/README.md:5)
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions