Testing
Module: std.testing
Source: std/testing.zn
Usage Example
use std.testing;fn main() {assert(2 + 2 == 4);assert_eq(2 + 2, 4);assert_eq_msg(3 * 3, 9, "square");}
Functions
Section titled “Functions”pub fn assert(condition: bool);pub fn assert_msg(condition: bool, errorMessage: []const char);pub fn assert_eq[T: Eq + Display](actual: T, expected: T);pub fn assert_eq_msg[T: Eq + Display](actual: T, expected: T, errorMessage: []const char);