only: minor cleanup
This commit is contained in:
parent
083c519f1e
commit
32172801cc
|
@ -23,11 +23,11 @@ static void assertNextEvent(const char *msg, int expectedPinState, TestExecutor
|
|||
timeNowUs = expectedTimeOfNextEvent;
|
||||
|
||||
// execute pending actions and assert that only one action was executed
|
||||
ASSERT_NEAR(1, executor->executeAll(timeNowUs), 0) << msg << " executed";
|
||||
ASSERT_NEAR(expectedPinState, pin.currentLogicValue, 0) << msg << " pin state";
|
||||
ASSERT_EQ(1, executor->executeAll(timeNowUs)) << msg << " executed";
|
||||
ASSERT_EQ(expectedPinState, pin.currentLogicValue) << msg << " pin state";
|
||||
|
||||
// assert that we have one new action in queue
|
||||
ASSERT_EQ( 1, executor->size()) << "PWM_test: queue.size";
|
||||
ASSERT_EQ(1, executor->size()) << "PWM_test: queue.size";
|
||||
}
|
||||
|
||||
static void test100dutyCycle() {
|
||||
|
|
Loading…
Reference in New Issue