From 27fb199e66c040e88af4873e3c3b7f47d7ce2fd7 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 6 Nov 2017 22:33:06 -0500 Subject: [PATCH] unit test --- unit_tests/main.cpp | 1 + unit_tests/test_trigger_decoder.cpp | 9 +++++++++ unit_tests/test_trigger_decoder.h | 1 + 3 files changed, 11 insertions(+) diff --git a/unit_tests/main.cpp b/unit_tests/main.cpp index 4694895cfc..aeb7a4ca96 100644 --- a/unit_tests/main.cpp +++ b/unit_tests/main.cpp @@ -127,6 +127,7 @@ extern bool printTriggerDebug; int main(void) { // printTriggerDebug = true; + testDifferentInjectionModes(); testPidAutoZigZag(); testMissedSpark299(); testSparkReverseOrderBug319(); diff --git a/unit_tests/test_trigger_decoder.cpp b/unit_tests/test_trigger_decoder.cpp index a2fff97113..74efc8de70 100644 --- a/unit_tests/test_trigger_decoder.cpp +++ b/unit_tests/test_trigger_decoder.cpp @@ -1013,6 +1013,15 @@ void testFuelSchedulerBug299smallAndMedium(void) { testMafValue = 0; } +void testDifferentInjectionModes(void) { + printf("*************************************************** testDifferentInjectionModes\r\n"); + + EngineTestHelper eth(TEST_ENGINE); + EXPAND_EngineTestHelper + setTestBug299(ð); + +} + void testFuelSchedulerBug299smallAndLarge(void) { printf("*************************************************** testFuelSchedulerBug299 small to large\r\n"); diff --git a/unit_tests/test_trigger_decoder.h b/unit_tests/test_trigger_decoder.h index efdfb0693f..048acb19f8 100644 --- a/unit_tests/test_trigger_decoder.h +++ b/unit_tests/test_trigger_decoder.h @@ -11,6 +11,7 @@ void testTriggerDecoder(void); void testFuelSchedulerBug299smallAndMedium(void); void testFuelSchedulerBug299smallAndLarge(void); +void testDifferentInjectionModes(void); void testSparkReverseOrderBug319(void); void testMissedSpark299(void); void testRpmCalculator(void);