nx_html_to_text_entity_test.nx
buildroot/runtime/nx_html_to_text_entity_test.nx
about
nx_html_to_text_entity_test.nx -- X-HTML-ENT-001 KAT: HTML character-
reference decoding in the sovereign browser's text renderer.
Corpus (each a distinct exit code on failure):
E1 "'" -> "'" decimal numeric ref
E2 "'" -> "'" hex numeric ref (lowercase x)
E3 "A" -> "A" hex numeric ref (uppercase X)
E4 "’" -> U+2019 (E2 80 99) numeric ref >= 0x80 -> UTF-8
E5 "'" -> "'" named entity (newly added)
E6 recorded snippet "<p>Claude's Constitution</p>"
-> "Claude's Constitution\n" (the anthropic.com case)
E7 "&#;" -> "&#;" malformed: graceful literal, no skip
E4 is the build-intelligence check (codepoint faithfully UTF-8 encoded,
not dropped). E7 is the no-silent-skip check (malformed ref renders
literally, never crashes or vanishes).
expect_exit: 0
license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_html_to_text.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 24 | func ent_eq(got: *u8, got_len: i64, exp: *u8, exp_len: i64) -> i64 |
| 35 | func e1_decimal() -> i64 |
| 46 | func e2_hex_lower() -> i64 |
| 57 | func e3_hex_upper() -> i64 |
| 68 | func e4_utf8() -> i64 |
| 80 | func e5_apos() -> i64 |
| 92 | func e6_recorded() -> i64 |
| 116 | func e7_malformed() -> i64 |
| 126 | func main() -> i64 |