aboutsummaryrefslogtreecommitdiff
path: root/test/src/unittests-math.cpp
diff options
context:
space:
mode:
authorPjotr Prins2020-05-22 07:15:37 -0500
committerPjotr Prins2020-05-22 07:15:37 -0500
commit8c82a8294483ffac4d8e9635376723f26a8ae27b (patch)
treec987e3646be820fe703452ad250979e4f3c112a9 /test/src/unittests-math.cpp
parentf112b0fa5f29651b5af8cb3bd1c2933f010c2960 (diff)
downloadpangemma-8c82a8294483ffac4d8e9635376723f26a8ae27b.tar.gz
Fixes for gcc (GCC) 10.1.0
Started to remove eigenlib (again)
Diffstat (limited to 'test/src/unittests-math.cpp')
-rw-r--r--test/src/unittests-math.cpp8
1 files changed, 4 insertions, 4 deletions
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 <iostream>
#include <fenv.h>
#include "gsl/gsl_matrix.h"
-#include <cblas.h>
+// #include <cblas.h>
#include <algorithm>
#include <limits>
@@ -63,13 +63,13 @@ TEST_CASE( "Math functions", "[math]" ) {
// ---- NaN checks
vector<double> 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<double> v2 = {1.0, 2.0, std::numeric_limits<double>::quiet_NaN()};
- REQUIRE (std::isnan(v2[2]));
+ REQUIRE (isnan(v2[2]));
REQUIRE(has_nan(v2));
// test minus nan
vector<double> v3 = {1.0, 2.0, -std::numeric_limits<double>::quiet_NaN()};
- REQUIRE (std::isnan(v3[2]));
+ REQUIRE (isnan(v3[2]));
REQUIRE(has_nan(v3));
}