diff --git a/src/main.zig b/src/main.zig index 832f44c..74e8b40 100644 --- a/src/main.zig +++ b/src/main.zig @@ -365,3 +365,16 @@ test "get weekday" { }; try testing.expectEqual(dt.weekday(), .tuesday); } + +test "get weekday 2" { + const dt = DateTime{ + .year = Year.new(2023), + .month = .june, + .day = 10, + .hour = 6, + .minute = 21, + .second = 22, + .tz = .utc, + }; + try testing.expectEqual(dt.weekday(), .saturday); +}