std.testing [core] std.testing.fail pub fn fail(msg: str) — Unconditional failure: prints msg on one line, then traps assert ([conf.trap.map]). std.testing.unreachable pub fn unreachable() — Marks code that must never execute; reaching it is the bug. std.testing.todo pub fn todo(msg: str) — Marks unfinished code: reaching it traps assert via fail, naming msg as what remains to build. std.testing.assert_eq pub fn assert_eq[T: cmp.Eq](a: T, b: T) — Asserts a equals b under cmp.Eq; a miss prints one line and traps assert. std.testing.assert_ne pub fn assert_ne[T: cmp.Eq](a: T, b: T) — Asserts a differs from b under cmp.Eq; equality prints one line and traps assert. std.testing.assert_lt pub fn assert_lt[T: cmp.Ord](a: T, b: T) — Asserts a < b under cmp.Ord. std.testing.assert_le pub fn assert_le[T: cmp.Ord](a: T, b: T) — Asserts a <= b under cmp.Ord. std.testing.assert_gt pub fn assert_gt[T: cmp.Ord](a: T, b: T) — Asserts a > b under cmp.Ord. std.testing.assert_ge pub fn assert_ge[T: cmp.Ord](a: T, b: T) — Asserts a >= b under cmp.Ord. std.testing.assert_contains pub fn assert_contains[T: cmp.Eq](xs: List[T], x: T) — Asserts xs contains an element equal to x under cmp.Eq. std.testing.assert_near pub fn assert_near(a: f64, b: f64, eps: f64) — Asserts a and b are within eps of each other — the absolute tolerance form, for a magnitude the test already knows. std.testing.assert_ulps pub fn assert_ulps(a: f64, b: f64, n: int) — Asserts a and b are at most n representable steps apart — the RELATIVE tolerance a float test actually wants, in the currency std.math.float documents its accuracy in (sc04's ulp harness).