Added another weekday test
This commit is contained in:
parent
496970583d
commit
c4207f940c
13
src/main.zig
13
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user