Commit 9918436d authored by Louis Feng's avatar Louis Feng

fixed isnan issue on centos 7.2

parent 85a17aeb
......@@ -357,5 +357,5 @@ TEST(util, parse_string)
EXPECT_FLOAT_EQ(numeric_limits<double>::infinity(), parse_string<double>("INFINITY"));
EXPECT_FLOAT_EQ(numeric_limits<double>::infinity(), parse_string<double>("infinity"));
EXPECT_FLOAT_EQ(-numeric_limits<double>::infinity(), parse_string<double>("-INFINITY"));
EXPECT_TRUE(isnan(parse_string<double>("NaN")));
EXPECT_TRUE(std::isnan(parse_string<double>("NaN")));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment