default argument to improve test API (#405)

This commit is contained in:
rusefillc 2024-04-10 01:42:16 -04:00 committed by GitHub
parent 693dd66ea4
commit 89462092a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ public:
void assertInjectorUpEvent(const char *msg, int eventIndex, efitimeus_t momentX, long injectorIndex);
void assertInjectorDownEvent(const char *msg, int eventIndex, efitimeus_t momentX, long injectorIndex);
// todo: open question if this is worth a helper method or should be inlined?
void assertRpm(int expectedRpm, const char *msg);
void assertRpm(int expectedRpm, const char *msg = "RPM");
int executeActions();
void moveTimeForwardMs(float deltaTimeMs);

View File

@ -98,7 +98,7 @@ TEST(trigger, test1995FordInline6TriggerDecoder) {
engine->periodicFastCallback();
eth.fireTriggerEvents(48);
eth.assertRpm(2000, "rpm");
eth.assertRpm(2000);
engine->periodicFastCallback();
eth.fireTriggerEvents(48);