reduce flash footprint by smarter code generation #4163

This commit is contained in:
Andrey 2022-05-15 10:07:02 -04:00
parent d38d8a7840
commit 146d887cdd
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#include "pch.h"
#include "value_lookup.h"
TEST(LuaBasic, configLookup) {
EngineTestHelper eth(FORD_ESCORT_GT);
engineConfiguration->launchRpm = 100;
ASSERT_EQ(100.0, getConfigValueByName("launchRpm"));
engineConfiguration->maxAcTps = 40;
ASSERT_EQ(40.0, getConfigValueByName("maxAcTps"));
}

View File

@ -29,6 +29,7 @@ TESTS_SRC_CPP = \
tests/ignition_injection/test_fuel_computer.cpp \
tests/ignition_injection/test_injector_model.cpp \
tests/lua/test_lua_basic.cpp \
tests/lua/test_lookup.cpp \
tests/lua/test_lua_e65.cpp \
tests/lua/test_lua_with_engine.cpp \
tests/lua/test_lua_hooks.cpp \