template.

This commit is contained in:
Gabe Venberg 2024-12-02 17:59:08 +01:00
parent 579c643f3f
commit 0a9f08cbf0
5 changed files with 51 additions and 0 deletions

13
days/template/part1.zig Normal file
View file

@ -0,0 +1,13 @@
const lib = @import("lib.zig");
const std = @import("std");
pub fn part1(comptime input: []const u8) i32 {
return input.len;
}
test "part1 sample" {
const input =
\\0
;
try std.testing.expectEqual(part1(input), 11);
}