code wiki / (root) / nx_html_to_text_entity_test.nx

nx_html_to_text_entity_test.nx

buildroot/runtime/nx_html_to_text_entity_test.nx

5661 B136 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic html
docsdependenciesstructsconstsfunctions

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 "&#39;" -> "'" decimal numeric ref E2 "&#x27;" -> "'" hex numeric ref (lowercase x) E3 "&#X41;" -> "A" hex numeric ref (uppercase X) E4 "&#8217;" -> U+2019 (E2 80 99) numeric ref >= 0x80 -> UTF-8 E5 "&apos;" -> "'" named entity (newly added) E6 recorded snippet "<p>Claude&#x27;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

nx_syscalls.nx nx_html_to_text.nx nx_html_to_text_entity_test.nx

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

main e1_decimal sys_mmap nx_html_to_text nx_html_to_text_x h2t_state_new sys_mmap ↻ sys_mmap ↻ h2t_scan_tag h2t_skip_to_gt h2t_scan_name h2t_is_name h2t_is_block_tag h2t_name_eq_lit h2t_lc h2t_lc ↻ h2t_is_suppress_tag h2t_name_eq_lit ↻ h2t_emit_newline h2t_name_eq_lit ↻ h2t_emit_raw h2t_find_href h2t_lc ↻ h2t_is_name ↻ h2t_decode_entity h2t_decode_numeric h2t_is_name ↻ nx_html_entity_lookup h2t_emit_codepoint h2t_emit_text_byte h2t_is_ws h2t_emit_text_byte ↻ sys_munmap ent_eq e2_hex_lower sys_mmap ↻ nx_html_to_text ↻ ent_eq ↻ e3_hex_upper sys_mmap ↻

structs

none

consts

none

functions

24func ent_eq(got: *u8, got_len: i64, exp: *u8, exp_len: i64) -> i64
35func e1_decimal() -> i64
called by 1: main calls 3: sys_mmapnx_html_to_textent_eq
46func e2_hex_lower() -> i64
called by 1: main calls 3: sys_mmapnx_html_to_textent_eq
57func e3_hex_upper() -> i64
called by 1: main calls 3: sys_mmapnx_html_to_textent_eq
68func e4_utf8() -> i64
called by 1: main calls 3: sys_mmapnx_html_to_textent_eq
80func e5_apos() -> i64
called by 1: main calls 3: sys_mmapnx_html_to_textent_eq
92func e6_recorded() -> i64
called by 1: main calls 3: sys_mmapnx_html_to_textent_eq
116func e7_malformed() -> i64
called by 1: main calls 3: sys_mmapnx_html_to_textent_eq
126func main() -> i64