mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-08 11:20:46 -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);
|
||
|
}
|