follow the comment

* test build on VS2012
pull/6975/head
Tomoaki Teshima 8 years ago
parent 4423a5edad
commit 70dcd107d0
  1. 6
      modules/core/test/test_arithm.cpp

@ -1,4 +1,5 @@
#include "test_precomp.hpp" #include "test_precomp.hpp"
#include <cmath>
using namespace cv; using namespace cv;
using namespace std; using namespace std;
@ -1902,11 +1903,6 @@ TEST(Normalize, regression_5876_inplace_change_type)
EXPECT_EQ(0, cvtest::norm(m, result, NORM_INF)); EXPECT_EQ(0, cvtest::norm(m, result, NORM_INF));
} }
#ifndef NAN
#include <limits> // numeric_limits<T>::quiet_NaN()
#define NAN std::numeric_limits<float>::quiet_NaN()
#endif
TEST(MinMaxLoc, regression_4955_nans) TEST(MinMaxLoc, regression_4955_nans)
{ {
cv::Mat one_mat(2, 2, CV_32F, cv::Scalar(1)); cv::Mat one_mat(2, 2, CV_32F, cv::Scalar(1));

Loading…
Cancel
Save