VW warnings on cranking #2861
This commit is contained in:
parent
6dbc40e990
commit
8a2564aaef
|
@ -46,8 +46,13 @@ void CsvReader::processLine(EngineTestHelper *eth) {
|
|||
|
||||
char *timeStampstr = trim(strtok(line, s));
|
||||
bool newState[2];
|
||||
newState[columnIndeces[0]] = trim(strtok(NULL, s))[0] == '1';
|
||||
newState[columnIndeces[1]] = trim(strtok(NULL, s))[0] == '1';
|
||||
char *firstToken = trim(strtok(NULL, s));
|
||||
char *secondToken = trim(strtok(NULL, s));
|
||||
|
||||
newState[columnIndeces[0]] = firstToken[0] == '1';
|
||||
if (secondToken != nullptr && triggerCount > 1) {
|
||||
newState[columnIndeces[1]] = secondToken[0] == '1';
|
||||
}
|
||||
|
||||
double timeStamp = std::stod(timeStampstr);
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ public:
|
|||
|
||||
bool currentState[2];
|
||||
|
||||
int triggerCount = 2;
|
||||
|
||||
int lineIndex = -1;
|
||||
|
||||
int * columnIndeces;
|
||||
|
|
|
@ -11,15 +11,16 @@
|
|||
|
||||
TEST(crankingVW, vwRealCrankingFromFile) {
|
||||
CsvReader reader;
|
||||
reader.triggerCount = 1;
|
||||
int indeces[1] = {0};
|
||||
|
||||
reader.open("tests/trigger/recourses/nick_1.csv", indeces);
|
||||
WITH_ENGINE_TEST_HELPER (VW_ABA);
|
||||
/*
|
||||
|
||||
while (reader.haveMore()) {
|
||||
reader.processLine(ð);
|
||||
}
|
||||
/*
|
||||
ASSERT_EQ( 0, eth.recentWarnings()->getCount())<< "warningCounter#vwRealCranking";
|
||||
ASSERT_EQ( 560, GET_RPM())<< reader.lineIndex;
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue