preparing for #973

wall wetting was not covered by any unit test?!
This commit is contained in:
rusefi 2019-10-16 16:46:34 -04:00
parent 54d1dd359a
commit f9fb4143a5
4 changed files with 34 additions and 5 deletions

View File

@ -1,7 +1,7 @@
/**
* @file test_accel_enrichment.cpp
*
* Created on: apr 29, 2014
* @date Apr 29, 2014
* Author: Dmitry Sidin
* Author: Andrey Belomutskiy, (c) 2012-2018
*/
@ -11,7 +11,7 @@
#include "accel_enrichment.h"
#include "engine_test_helper.h"
TEST(big, testAccelEnrichment) {
TEST(fuel, testTpsAccelEnrichment) {
printf("====================================================================================== testAccelEnrichment\r\n");
WITH_ENGINE_TEST_HELPER(FORD_ASPIRE_1996);

View File

@ -1,7 +1,8 @@
/*
* test_fuelCut.cpp
* @file test_fuelCut.cpp
*
* Created on: Mar 22, 2018
* @date Mar 22, 2018
* @author Andrey Belomutskiy, (c) 2012-2019
*/
#include "engine_math.h"

View File

@ -0,0 +1,28 @@
/*
* @file test_fuel_wall_wetting.cpp
*
* See also test_accel_enrichment.cpp
*
* @date Oct 16, 2019
* @author Andrey Belomutskiy, (c) 2012-2019
*/
#include "engine_test_helper.h"
TEST(fuel, testWallWettingEnrichment) {
WITH_ENGINE_TEST_HELPER(FORD_ASPIRE_1996);
engineConfiguration->wwaeTau = 1.0f;
engineConfiguration->wwaeBeta = 0.40f;
engine->rpmCalculator.setRpmValue(3000 PASS_ENGINE_PARAMETER_SUFFIX);
ASSERT_NEAR(16.6666, ENGINE(wallFuel).adjust(0, 10.0 PASS_ENGINE_PARAMETER_SUFFIX), EPS4D);
ASSERT_NEAR(16.198, ENGINE(wallFuel).adjust(0, 10.0 PASS_ENGINE_PARAMETER_SUFFIX), EPS4D);
}

View File

@ -15,6 +15,7 @@ TESTS_SRC_CPP = \
tests/test_trigger_noiseless.cpp \
tests/test_issue_898.cpp \
tests/test_fuel_map.cpp \
tests/test_fuel_wall_wetting.cpp \
tests/test_one_cylinder_logic.cpp \
tests/test_maf2map.cpp \
tests/test_fuelCut.cpp \
@ -29,7 +30,6 @@ TESTS_SRC_CPP = \
tests/test_pid.cpp \
tests/test_accel_enrichment.cpp \
tests/test_gpiochip.cpp \
\
tests/sensor/basic_sensor.cpp \
tests/sensor/func_sensor.cpp \
tests/sensor/function_pointer_sensor.cpp \