Unverified Commit 6f746c09 authored by Louis Feng's avatar Louis Feng Committed by GitHub

Merge pull request #479 from NervanaSystems/louisfeng/fix-isnan

fixed isnan issue on centos 7.2
parents 85a17aeb 9918436d
...@@ -357,5 +357,5 @@ TEST(util, parse_string) ...@@ -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_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