Commit dc9db580 authored by Davis King's avatar Davis King

merged

parents 658927b3 c6df93f5
...@@ -56,7 +56,9 @@ namespace dlib ...@@ -56,7 +56,9 @@ namespace dlib
#if !defined(DLIB_DISABLE_ASSERTS) && ( defined DEBUG || defined _DEBUG) #if !defined(DLIB_DISABLE_ASSERTS) && ( defined DEBUG || defined _DEBUG)
// make sure ENABLE_ASSERTS is defined if we are indeed using them. // make sure ENABLE_ASSERTS is defined if we are indeed using them.
#define ENABLE_ASSERTS #ifndef ENABLE_ASSERTS
#define ENABLE_ASSERTS
#endif
#endif #endif
// ----------------------------- // -----------------------------
......
...@@ -314,7 +314,7 @@ namespace ...@@ -314,7 +314,7 @@ namespace
rs.add(labels[k]*df(samples[k])); rs.add(labels[k]*df(samples[k]));
} }
} }
DLIB_TEST_MSG(std::abs(rs.min()-1) < 1e-7, std::abs(rs.min()-1)); DLIB_TEST_MSG(std::abs(rs.min()-1) < 1e-6, std::abs(rs.min()-1));
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment