소스 검색

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;
 }
 
 //-----------------------------------------------------------------------------