mirror of https://github.com/rusefi/rusefi.git
reviving tests
This commit is contained in:
parent
2d21796e59
commit
d810b9fb82
|
@ -78,7 +78,7 @@ TEST(LaunchControl, RPMCondition) {
|
|||
|
||||
engineConfiguration->launchRpm = 3000;
|
||||
|
||||
EXPECT_EQ(dut.isInsideRPMCondition(2900), LaunchCondition::NotMet);
|
||||
EXPECT_EQ(dut.isInsideRPMCondition(2900), LaunchCondition::PreLaunch);
|
||||
|
||||
EXPECT_EQ(dut.isInsideRPMCondition(3100), LaunchCondition::Launch);
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ TEST(LaunchControl, CombinedCondition) {
|
|||
|
||||
EXPECT_EQ(dut.isLaunchConditionMet(1200), LaunchCondition::NotMet);
|
||||
|
||||
Sensor::setMockValue(SensorType::Rpm, 3200);
|
||||
Sensor::setMockValue(SensorType::Rpm, 3200);
|
||||
EXPECT_EQ(dut.isLaunchConditionMet(3200), LaunchCondition::Launch);
|
||||
|
||||
Sensor::setMockValue(SensorType::VehicleSpeed, 40.0);
|
||||
|
|
Loading…
Reference in New Issue