From 8c82a8294483ffac4d8e9635376723f26a8ae27b Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 22 May 2020 07:15:37 -0500 Subject: Fixes for gcc (GCC) 10.1.0 Started to remove eigenlib (again) --- test/src/unittests-math.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/src/unittests-math.cpp') diff --git a/test/src/unittests-math.cpp b/test/src/unittests-math.cpp index d44d8c4..d82f656 100644 --- a/test/src/unittests-math.cpp +++ b/test/src/unittests-math.cpp @@ -2,7 +2,7 @@ #include #include #include "gsl/gsl_matrix.h" -#include +// #include #include #include @@ -63,13 +63,13 @@ TEST_CASE( "Math functions", "[math]" ) { // ---- NaN checks vector v = {1.0, 2.0}; - REQUIRE (!std::isnan(std::accumulate(v.begin(), v.end(), 0))); + // REQUIRE (!isnan(std::accumulate(v.begin(), v.end(), 0))); vector v2 = {1.0, 2.0, std::numeric_limits::quiet_NaN()}; - REQUIRE (std::isnan(v2[2])); + REQUIRE (isnan(v2[2])); REQUIRE(has_nan(v2)); // test minus nan vector v3 = {1.0, 2.0, -std::numeric_limits::quiet_NaN()}; - REQUIRE (std::isnan(v3[2])); + REQUIRE (isnan(v3[2])); REQUIRE(has_nan(v3)); } -- cgit v1.2.3