Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Replace
pow
with Math::UnsignedPower
in NumberToString GTest
Aims to address test failures reported by Yuri Victorovich, at #5245, saying: ``` /usr/ports/science/InsightToolkit/work/ITK-5.4.2/Modules/Core/Common/test/itkNumberToStringGTest.cxx:99: Failure Expected equality of these values: numberToString(power_of_ten) Which is: "100000010000" '1' + std::string(exponent, '0') Which is: "100000000000" Floating point type: float ... /usr/ports/science/InsightToolkit/work/ITK-5.4.2/Modules/Core/Common/test/itkNumberToStringGTest.cxx:109: Failure Expected equality of these values: numberToString(-power_of_ten) Which is: "-0.000009999999999999999" "-0." + std::string(-1 - exponent, '0') + '1' Which is: "-0.00001" Floating point type: double/usr/ports/science/InsightToolkit/work/ITK-5.4.2/Modules/Core/Common/test/itkNumberToStringGTest.cxx:109: Failure Expected equality of these values: numberToString(-power_of_ten) Which is: "-0.000009999999999999999" "-0." + std::string(-1 - exponent, '0') + '1' Which is: "-0.00001" Floating point type: double ``` Using clang-19 on FreeBSD 14.2. Sean McBride confirmed that this commit would solve the issue on his FreeBSD VM.
- Loading branch information