Skip to content

Commit f40264b

Browse files
committed
Merge branch 'exhaustive32_count_fix_fix' of github.com:fastfloat/float_serialization_benchmark into exhaustive32_count_fix_fix
2 parents 20a6a6a + dcd915b commit f40264b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

benchmarks/exhaustivefloat32.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,18 @@ void run_exhaustive32(bool errol) {
112112
fflush(stdout);
113113
break;
114114
}
115+
if(*backRef != d || *backAlgo != d) {
116+
fmt::println("\n# Error: parsing the output with std::from_chars does not bring back the input.");
117+
}
115118
if(*backRef != d) {
116119
incorrect = true;
117-
fmt::print(" mismatch: d = {}, backRef = {}", d, *backRef);
120+
fmt::print(" ref mismatch: d = {}, backRef = {}", d, *backRef);
118121
fflush(stdout);
119122
break;
120123
}
121124
if(*backAlgo != d) {
122125
incorrect = true;
123-
fmt::print(" mismatch: d = {}, backAlgo = {}", d, *backAlgo);
126+
fmt::print(" algo mismatch: d = {}, backAlgo = {}, parsing the output with std::from_chars does not recover the original", d, *backAlgo);
124127
fflush(stdout);
125128
break;
126129
}

0 commit comments

Comments
 (0)