Testing
Zig Testing Guide: Built-in Test Runner, std.testing, and Comptime Tests
Zig has a built-in test runner — no external framework needed. Write test "name" { ... } blocks anywhere in your code, run zig test src/main.zig, and the compiler compiles and runs them. The std.testing module provides assertions, and comptime blocks can be tested too. This guide covers