mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 22:13:11 -05:00
11 lines
173 B
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);
|
||
|
}
|