Skip to content

Commit

Permalink
fix: add try to test
Browse files Browse the repository at this point in the history
  • Loading branch information
vascocosta authored and rockorager committed Sep 10, 2024
1 parent 318e901 commit 2847c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zeit.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ test "fmtStrftime" {
try std.testing.expectEqualStrings("00", fbs.getWritten());

fbs.reset();
const d2 = time.instant().add(.{ .days = 3 }).time();
const d2 = (try time.instant().add(.{ .days = 3 })).time();
try d2.strftime(writer, "%U");
try std.testing.expectEqualStrings("01", fbs.getWritten());

Expand Down

0 comments on commit 2847c2c

Please sign in to comment.