Revert "reduce flash footprint by smarter code generation #4163"
This reverts commit f327897d6c
.
This commit is contained in:
parent
f327897d6c
commit
ea11cc2351
|
@ -3,25 +3,11 @@
|
||||||
|
|
||||||
TEST(LuaBasic, configLookup) {
|
TEST(LuaBasic, configLookup) {
|
||||||
EngineTestHelper eth(FORD_ESCORT_GT);
|
EngineTestHelper eth(FORD_ESCORT_GT);
|
||||||
{
|
|
||||||
const char * name = "ignitionDwellForCrankingMs";
|
|
||||||
setConfigValueByName(name, 1.6);
|
|
||||||
ASSERT_NEAR(1.6, getConfigValueByName(name), EPS3D);
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
const char * name = "launchRpm";
|
|
||||||
engineConfiguration->launchRpm = 100;
|
engineConfiguration->launchRpm = 100;
|
||||||
ASSERT_EQ(100.0, getConfigValueByName(name));
|
ASSERT_EQ(100.0, getConfigValueByName("launchRpm"));
|
||||||
setConfigValueByName(name, 160);
|
|
||||||
ASSERT_EQ(150.0, getConfigValueByName(name));
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
const char * name = "maxAcTps";
|
|
||||||
engineConfiguration->maxAcTps = 40;
|
engineConfiguration->maxAcTps = 40;
|
||||||
ASSERT_EQ(40.0, getConfigValueByName(name));
|
ASSERT_EQ(40.0, getConfigValueByName("maxAcTps"));
|
||||||
setConfigValueByName(name, 103);
|
|
||||||
ASSERT_EQ(103.0, getConfigValueByName(name));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue