001 string basic

✓ Passing This code compiles and runs correctly.

Code

// Test: Basic string creation and read
~import "$std/string"
~import "$std/io"

~std.string:from_page(text: "hello")
| ok s |> std.string:read(s: s.s)
    | slice text |> std.io:print.ln("{{ text:s }}")
        |> std.string:free(s: s.s)
| err _ |> _
input.kz

Expected Output

hello

Test Configuration

MUST_RUN