From c4207f940ca8199146e370fa91c75fd8bcb72d03 Mon Sep 17 00:00:00 2001 From: Nathan Fisher Date: Tue, 13 Jun 2023 02:07:52 -0400 Subject: [PATCH] Added another weekday test --- src/main.zig | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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); +}