micro test refactoring
This commit is contained in:
parent
7e909205b6
commit
1b8217392c
|
@ -31,7 +31,13 @@ public:
|
|||
void fireRise(int delayMs);
|
||||
void fireFall(int delayMs);
|
||||
|
||||
/**
|
||||
* See also #fireRise()
|
||||
*/
|
||||
void firePrimaryTriggerRise();
|
||||
/**
|
||||
* See also #fireFall()
|
||||
*/
|
||||
void firePrimaryTriggerFall();
|
||||
void fireTriggerEvents(int count);
|
||||
void fireTriggerEventsWithDuration(int delayMs);
|
||||
|
|
|
@ -415,8 +415,7 @@ TEST(misc, testRpmCalculator) {
|
|||
ASSERT_EQ( 0, engine->executor.size()) << "queue size 7";
|
||||
engine->executor.clear();
|
||||
|
||||
eth.moveTimeForwardUs(5000); // 5ms
|
||||
eth.firePrimaryTriggerRise();
|
||||
eth.fireRise(5 /*ms*/);
|
||||
ASSERT_EQ( 4, engine->executor.size()) << "queue size 8";
|
||||
// todo: assert queue elements completely
|
||||
assertEqualsM("8/0", start + 53333 - 1515, engine->executor.getForUnitTest(0)->momentX);
|
||||
|
|
Loading…
Reference in New Issue