From 87183a52beda5bee44e822eb5d2ac2d91252cac7 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 4 Mar 2017 09:05:40 -0500 Subject: [PATCH] better logging --- unit_tests/test_trigger_decoder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/unit_tests/test_trigger_decoder.cpp b/unit_tests/test_trigger_decoder.cpp index f0f932f77f..78b21a0d11 100644 --- a/unit_tests/test_trigger_decoder.cpp +++ b/unit_tests/test_trigger_decoder.cpp @@ -191,12 +191,12 @@ void test1995FordInline6TriggerDecoder(void) { void testFordAspire(void) { printf("*************************************************** testFordAspire\r\n"); - assertEquals(4, getTriggerZeroEventIndex(FORD_ASPIRE_1996)); + assertEqualsM("getTriggerZeroEventIndex", 0, getTriggerZeroEventIndex(FORD_ASPIRE_1996)); EngineTestHelper eth(FORD_ASPIRE_1996); EXPAND_EngineTestHelper; - assertEquals(4, TRIGGER_SHAPE(getTriggerShapeSynchPointIndex())); + assertEqualsM("getTriggerShapeSynchPointIndex", 4, TRIGGER_SHAPE(getTriggerShapeSynchPointIndex())); assertEquals(800, config->fuelRpmBins[0]); assertEquals(7000, config->fuelRpmBins[15]); @@ -224,8 +224,8 @@ void testTriggerDecoder2(const char *msg, engine_type_e type, int synchPointInde assertEqualsM("synchPointIndex", synchPointIndex, t->getTriggerShapeSynchPointIndex()); - assertEqualsM("channel1duty", channel1duty, t->dutyCycle[0]); - assertEqualsM("channel2duty", channel2duty, t->dutyCycle[1]); + assertEqualsM4(msg, " channel1duty", channel1duty, t->dutyCycle[0]); + assertEqualsM4(msg, " channel2duty", channel2duty, t->dutyCycle[1]); } static void testTriggerDecoder3(const char *msg, engine_type_e type, int synchPointIndex, float channel1duty, float channel2duty, float expectedGap) {