Skip to content

Commit 6a9a903

Browse files
committed
fix(zig): corrected relative paths for embedFile in 2021
1 parent c53a1f1 commit 6a9a903

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

2021/zig/src/01/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn part2(input: []const u8) !u32 {
4444
}
4545

4646
test "day 1 prod" {
47-
const input = @embedFile("../../inputs/1/prod.txt");
47+
const input = @embedFile("../../../inputs/1/prod.txt");
4848
try std.testing.expectEqual(@as(u32, 1681), try part1(input));
4949
try std.testing.expectEqual(@as(u32, 1704), try part2(input));
5050
}

2021/zig/src/02/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn part2(input: []const u8) !u32 {
5353
}
5454

5555
test "day 2 prod" {
56-
const input = @embedFile("../../inputs/2/prod.txt");
56+
const input = @embedFile("../../../inputs/2/prod.txt");
5757
try std.testing.expectEqual(@as(u32, 150), try part1(input));
5858
try std.testing.expectEqual(@as(u32, 900), try part2(input));
5959
}

0 commit comments

Comments
 (0)