aboutsummaryrefslogtreecommitdiff
path: root/test/src/unittests-math.cpp
diff options
context:
space:
mode:
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));
}