UserDataParser. Fix unit test

This commit is contained in:
Bjørn Erik Jensen 2017-11-23 09:48:36 +01:00
parent f87234ad39
commit 1acd39898e
2 changed files with 4 additions and 3 deletions

View File

@ -966,7 +966,10 @@ ColumnInfo ColumnInfo::createColumnInfoFromRsmData(const std::string& quantity,
{
ci.dataType = TEXT;
}
else
{
ci.dataType = NUMERIC;
}
return ci;
}

View File

@ -295,11 +295,9 @@ TEST(RifColumnBasedRsmspecParserTest, TestTwoPages)
ASSERT_EQ(size_t(2), tables.size());
EXPECT_EQ("1 1 2000", tables[0].startDate());
EXPECT_EQ("OP-1_TR", tables[0].origin());
// EXPECT_EQ("DD/MM/YY", tables[0].dateFormat());
EXPECT_EQ("1 1 2000", tables[1].startDate());
EXPECT_EQ("OP-2_TR", tables[1].origin());
// EXPECT_EQ("DD/MM/YY", tables[1].dateFormat());
ASSERT_EQ(size_t(8), tables.at(0).columnInfos().size());
EXPECT_EQ(1.0E-12, tables.at(0).columnInfos().at(4).values[0]);