Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
behavior
decltest.zig
pretty
plain
permalink
blame
history
•
9 lines
•
180 B
1
const builtin = @import("builtin");
2
3
pub fn the_add_function(a: u32, b: u32) u32 {
4
return a + b;
5
}
6
7
test the_add_function {
8
if (the_add_function(1, 2) != 3) unreachable;
9
}