mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-09-30 19:45:37 +00:00

Also created a simple exercise '102_testing' to test the new flag. After the new build system is ready, we skip the exercise in the flow to finish the actual testing exercise.
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);
|
|
}
|