ソースを参照

ctkUtilsTest3 was failing for a wrong reason

The returned value was inverted.
Julien Finet 14 年 前
コミット
943c0a67b2
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  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;
 }
 
 //-----------------------------------------------------------------------------