mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-06 14:49:53 +03:00
feat(util): add WowTime::SetHourAndMinutes
This commit is contained in:
3 files changed
+16
No files matched your search
@@ -144,3 +144,13 @@ TEST_CASE("WowTime::GetHourAndMinutes", "[util]") {
|
||||
REQUIRE(time.GetHourAndMinutes() == 11 * 60 + 18);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("WowTime::SetHourAndMinutes", "[util]") {
|
||||
SECTION("sets expected hour and minutes for 11:18") {
|
||||
WowTime time;
|
||||
time.SetHourAndMinutes(11 * 60 + 18);
|
||||
|
||||
CHECK(time.m_hour == 11);
|
||||
CHECK(time.m_minute == 18);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user