NB2 hellen-72-rev-d something is off #2958

This commit is contained in:
Andrey 2021-07-13 14:39:21 -04:00
parent fb1a60e0ba
commit 7fd2e8275f
1 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,17 @@
#include "logicdata_csv_reader.h"
TEST(crankingNB2, nb2RealCrankingFromFile) {
CsvReader reader(1, /* vvtCount */ 1);
int indeces[1] = {0};
reader.open("tests/trigger/resources/nb2_rev-d-4.csv", indeces);
WITH_ENGINE_TEST_HELPER (ET_HELLEN_NB2);
while (eth.getTimeNowUs() < 3'028'987) {
reader.processLine(&eth);
ASSERT_EQ(0, GET_RPM()) << "At line " << reader.lineIndex() << " time " << eth.getTimeNowUs();
}
ASSERT_EQ(243, GET_RPM()) << "At line " << reader.lineIndex() << " time " << eth.getTimeNowUs();
}