template.
This commit is contained in:
parent
579c643f3f
commit
0a9f08cbf0
5 changed files with 51 additions and 0 deletions
13
days/template/part2.zig
Normal file
13
days/template/part2.zig
Normal file
|
@ -0,0 +1,13 @@
|
|||
const lib = @import("lib.zig");
|
||||
const std = @import("std");
|
||||
|
||||
pub fn part2(comptime input: []const u8) i32 {
|
||||
return input.len;
|
||||
}
|
||||
|
||||
test "part2 sample" {
|
||||
const input =
|
||||
\\0
|
||||
;
|
||||
try std.testing.expectEqual(part2(input), 1);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue