-
-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3 tests fail #3739
Comments
@N-Dekker If I remember correctly, you might be fresh with |
@yurivict Interesting 🤔 Regarding the itkNumberToStringGTest failures: Did you possibly do anything to tweak the floating point behavior of the compiler? As in https://clang.llvm.org/docs/UsersManual.html#controlling-floating-point-behavior ? |
@yurivict It would be helpful if you could reproduce those float-to-string conversion errors (for example from ITK/Modules/Core/Common/src/itkNumberToString.cxx Lines 43 to 60 in 38696b2
Would you be able to? |
The conversion prints:
|
@yurivict Thanks for trying. 👍 So it looks like |
Without
|
Sorry, my bad. When you remove "Single", also change the type of the ITK/Modules/Core/Common/src/itkNumberToString.cxx Lines 26 to 32 in 38696b2
|
|
5.3rc04 has 4 cases failing on FreeBSD 13.1 STABLE:
|
Aims to ease the analysis of NumberToStringGTest test failures, like the `NumberToString.DecimalNotationUpTo21Digits` failures reported by yurivict at InsightSoftwareConsortium#3739 saying: /disk-samsung/freebsd-ports/science/InsightToolkit/work/ITK-5.2.1/Modules/Core/Common/test/itkNumberToStringGTest.cxx:87: Failure Expected equality of these values: numberToString(power_of_ten) Which is: "100000010000" '1' + std::string(exponent, '0') Which is: "100000000000"
@yurivict Can you please check if the
(At line 22, right after In other words, does pull request #3751 indeed fix those |
Addressed `NumberToString.DecimalNotationUpTo21Digits` failures reported by yurivict at InsightSoftwareConsortium#3739 saying: /disk-samsung/freebsd-ports/science/InsightToolkit/work/ITK-5.2.1/Modules/Core/Common/test/itkNumberToStringGTest.cxx:87: Failure Expected equality of these values: numberToString(power_of_ten) Which is: "100000010000" '1' + std::string(exponent, '0') Which is: "100000000000" It appears that without `#include <cmath>`, the wrong `pow` overload may be called. Also explicitly declared the local `power_of_ten` variables as `TValue` and prevented a narrowing conversion from those `std::pow` calls, just to be sure.
After more modules were enabled more tests are now failing: test.log |
Aims to ease the analysis of NumberToStringGTest test failures, like the `NumberToString.DecimalNotationUpTo21Digits` failures reported by yurivict at InsightSoftwareConsortium#3739 saying: /disk-samsung/freebsd-ports/science/InsightToolkit/work/ITK-5.2.1/Modules/Core/Common/test/itkNumberToStringGTest.cxx:87: Failure Expected equality of these values: numberToString(power_of_ten) Which is: "100000010000" '1' + std::string(exponent, '0') Which is: "100000000000"
Aims to ease the analysis of NumberToStringGTest test failures, like the `NumberToString.DecimalNotationUpTo21Digits` failures reported by yurivict at #3739 saying: /disk-samsung/freebsd-ports/science/InsightToolkit/work/ITK-5.2.1/Modules/Core/Common/test/itkNumberToStringGTest.cxx:87: Failure Expected equality of these values: numberToString(power_of_ten) Which is: "100000010000" '1' + std::string(exponent, '0') Which is: "100000000000"
Version: 5.2.1
clang-14
FreeBSD 13.1
The text was updated successfully, but these errors were encountered: