You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ziglings/exercises/102_testing.zig

11 lines
173 B
Zig

const std = @import("std");
const testing = std.testing;
fn add(a: u16, b: u16) u16 {
return a + b;
}
test "simple test" {
try testing.expect(add(41, 1) == 42);
}