Added another weekday test

This commit is contained in:
Nathan Fisher 2023-06-13 02:07:52 -04:00
parent 496970583d
commit c4207f940c

View File

@ -365,3 +365,16 @@ test "get weekday" {
}; };
try testing.expectEqual(dt.weekday(), .tuesday); 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);
}