summaryrefslogtreecommitdiffstatshomepage
path: root/exercises/102_testing.zig
blob: dc1da59eb7302811c397bc6bef9a6fceed6e0eae (plain)
1
2
3
4
5
6
7
8
9
10
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);
}