test_one_character_has_one_spelling_in_a_reply

Tests › tests/test_strip_xml.py

passed Passed in the packaged run.

What this test is for

Why it exists

FOUND BY ENTROPIC against the installed 2.0.0 (2026-11-23): doxygen stores the same character two ways — verbatim in some descriptions, as an entity in others (inside <computeroutput>) — so one reply could say `std::atomic&lt;bool&gt;` beside `n_tokens < 2`. Entities are decoded after doxygen's elements are removed, so a reply reads as the source.

Given

  1. stored = ( "<para>Holds a <computeroutput>std::atomic&lt;bool&gt;</computeroutput> flag; " "n_tokens < 2 &amp; done.</para>" )
→

When

  1. strip_xml(stored)
  2. strip_xml("<para>write &lt;para&gt; literally</para>")
→

Then

  1. ✓ strip_xml(stored) equals "Holds a std::atomic<bool> flag; n_tokens < 2 & done."
  2. ✓ strip_xml("<para>write &lt;para&gt; literally</para>") equals "write <para> literally"

tests/test_strip_xml.py:28 · its file's page

What it checks (2)

  1. assert strip_xml(stored) == "Holds a std::atomic<bool> flag; n_tokens < 2 & done." observes strip_xml
  2. assert strip_xml("<para>write &lt;para&gt; literally</para>") == "write <para> literally" observes strip_xml

Where the product reaches it

  • build_wiki → _build_site → test_pages → _briefs → strip_xml (flow)

Call flow

test_one_character_has_one_spelling_in_a_reply→strip_xml

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

test_one_character_has_one_spelling_in_a_reply · 2 checksstrip_xmlREQ-DDB-QUERY-003 · measured
Also reaches 1 requirement

Its run touches their code; that is reach, not proof.