diff options
Diffstat (limited to 'src/mongo/base/parse_number_test.cpp')
-rw-r--r-- | src/mongo/base/parse_number_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/base/parse_number_test.cpp b/src/mongo/base/parse_number_test.cpp index ecbad5086e9..3f30448d26d 100644 --- a/src/mongo/base/parse_number_test.cpp +++ b/src/mongo/base/parse_number_test.cpp @@ -28,12 +28,12 @@ #include "mongo/platform/basic.h" +#include <cmath> #include <limits> #include "mongo/base/parse_number.h" #include "mongo/base/status.h" #include "mongo/platform/cstdint.h" -#include "mongo/platform/float_utils.h" #include "mongo/util/mongoutils/str.h" // for str::stream()! #include "mongo/unittest/unittest.h" @@ -275,16 +275,16 @@ namespace { TEST(Double, TestParsingNan) { double d = 0; ASSERT_OK(parseNumberFromString("NaN", &d)); - ASSERT_TRUE(isNaN(d)); + ASSERT_TRUE(std::isnan(d)); } TEST(Double, TestParsingInfinity) { double d = 0; ASSERT_OK(parseNumberFromString("infinity", &d)); - ASSERT_TRUE(isInf(d)); + ASSERT_TRUE(std::isinf(d)); d = 0; ASSERT_OK(parseNumberFromString("-Infinity", &d)); - ASSERT_TRUE(isInf(d)); + ASSERT_TRUE(std::isinf(d)); } TEST(Double, TestParsingNormal) { |