nx_html_to_text_test.nx
buildroot/runtime/nx_html_to_text_test.nx
about
nx_html_to_text_test.nx -- KATs for the sovereign browser's text-
mode HTML renderer.
K1 "<p>hello</p>" → "hello\n"
K2 "<p>hi <b>there</b></p>" → "hi there\n"
K3 "& < >" → "& < >"
K4 "<script>alert(1)</script>X" → "X" (script body suppressed)
K5 "<p>a b</p>" → "a b\n" (whitespace collapsed)
K6 "<h1>Title</h1><p>body</p>" → "Title\nbody\n"
Built per F7 post-order DFS.
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
| 20 | func t_putstr(buf: *u8, off: i64, s: *u8, n: i64) -> i64 |
| 26 | func t_eq_bytes(got: *u8, got_len: i64, exp: *u8, exp_len: i64) -> i64 |
| 38 | func k1_p_hello() -> i64 |
| 55 | func k2_inline_tag() -> i64 |
| 76 | func k3_entities() -> i64 |
| 94 | func k4_script_suppressed() -> i64 |
| 112 | func k5_collapse_whitespace() -> i64 |
| 130 | func k6_heading_then_para() -> i64 |
| 150 | func main() -> i64 |