mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
More verbose error report.
This commit is contained in:
parent
2c8e738950
commit
95321767ee
@ -141,11 +141,15 @@ bool check_file(std::string file_name) {
|
|||||||
// Compare with expected results
|
// Compare with expected results
|
||||||
if (float32_parsed != float32) {
|
if (float32_parsed != float32) {
|
||||||
std::cout << "bad 32 " << str << std::endl;
|
std::cout << "bad 32 " << str << std::endl;
|
||||||
|
std::cout << "parsed = " << iHexAndDec(float32_parsed) << ", expectd = " << iHexAndDec(float32) << std::endl;
|
||||||
|
std::cout << "fesetround: " << round_name(d) << std::endl;
|
||||||
fesetround(FE_TONEAREST);
|
fesetround(FE_TONEAREST);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (float64_parsed != float64) {
|
if (float64_parsed != float64) {
|
||||||
std::cout << "bad 64 " << str << std::endl;
|
std::cout << "bad 64 " << str << std::endl;
|
||||||
|
std::cout << "parsed = " << iHexAndDec(float64_parsed) << ", expectd = " << iHexAndDec(float64) << std::endl;
|
||||||
|
std::cout << "fesetround: " << round_name(d) << std::endl;
|
||||||
fesetround(FE_TONEAREST);
|
fesetround(FE_TONEAREST);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user