mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-14 05:40:47 -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);
|
||
|
}
|