Manuscript Documentation
v2026.12.0

@std/test/golden.ms#

Import each required symbol with import Name from "@std/test/golden.ms".

expect_golden Function#

Compares actual with the text in the golden file at path. Under MS_UPDATE_GOLDEN=1 it rewrites the file instead. A mismatch names the file and the first differing line.

Manuscript
fn expect_golden(path String, actual String, site String = caller_site()) Result[Void, Error] { ... }

expect_golden_bytes Function#

Byte-for-byte version of expect_golden. A mismatch names the first differing offset.

Manuscript
fn expect_golden_bytes(path String, actual Bytes, site String = caller_site()) Result[Void, Error] { ... }