浏览代码

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)
   if (decimals != expected)
     {
     {
     std::cerr << std::fixed << value << " decimals: " << decimals << " -> " << expected << std::endl;
     std::cerr << std::fixed << value << " decimals: " << decimals << " -> " << expected << std::endl;
-    return false;
+    return true;
     }
     }
-  return true;
+  return false;
 }
 }
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------