✓
Passing This code compiles and runs correctly.
Code
// append-char / pop-char — TUI keystrokes feed a u8, not a string literal.
import std/io
import std/string
std/string:from-page(text: "ab")
| ok a |> std/string:take(s: a): s |> std/string:append-char(s, ch: 99)
| ok |> std/string:append-char(s, ch: 100)
| ok |> std/string:pop-char(s) |> std/string:read(s): text
|> std/io:print.ln("{{ text:s }}") |> std/string:free(s)
| err _ |> std/string:free(s)
| err _ |> std/string:free(s)
| err _ |> _
Actual
abc
Expected output
abc
Flows
flow ~from-page click a branch to expand · @labels scroll to their anchor
from-page (text: "ab")
Test Configuration
MUST_RUN