本文整理汇总了C++中LightScheduler_ScheduleTurnOn函数的典型用法代码示例。如果您正苦于以下问题:C++ LightScheduler_ScheduleTurnOn函数的具体用法?C++ LightScheduler_ScheduleTurnOn怎么用?C++ LightScheduler_ScheduleTurnOn使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了LightScheduler_ScheduleTurnOn函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TEST
TEST(LightScheduler, RejectsInvalidLightIds)
{
TEST_ASSERT_EQUAL(LS_ID_OUT_OF_BOUNDS,
LightScheduler_ScheduleTurnOn(-1, MONDAY, 600));
TEST_ASSERT_EQUAL(LS_ID_OUT_OF_BOUNDS,
LightScheduler_ScheduleTurnOn(32, MONDAY, 600));
}
示例2: TEST
TEST(LightScheduler, ScheduleTwoEventsAtTheSameTIme)
{
LightScheduler_ScheduleTurnOn(3, SUNDAY, 1200);
LightScheduler_ScheduleTurnOn(12, SUNDAY, 1200);
setTimeTo(SUNDAY, 1200);
LightScheduler_Wakeup();
checkLightState(3, LIGHT_ON);
checkLightState(12, LIGHT_ON);
}
示例3: TEST
TEST(LightScheduler, ScheduleOnWeekdayAndItsMondayAndItsTime)
{
LightScheduler_ScheduleTurnOn(id, WEEKDAY, 200);
setTimeTo(MONDAY, 200);
LightScheduler_WakeUp();
checkLightState(id, LIGHT_ON);
}