Browse Source

ctkUtilsTest3 was failing for a wrong reason

The returned value was inverted.
Julien Finet 14 years ago
parent
commit
943c0a67b2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Libs/Core/Testing/Cpp/ctkUtilsTest3.cpp

+ 2 - 2
Libs/Core/Testing/Cpp/ctkUtilsTest3.cpp

@@ -37,9 +37,9 @@ bool testSignificantDecimals(double value, int expected)
   if (decimals != expected)
     {
     std::cerr << std::fixed << value << " decimals: " << decimals << " -> " << expected << std::endl;
-    return false;
+    return true;
     }
-  return true;
+  return false;
 }
 
 //-----------------------------------------------------------------------------