debug log for differences - I found nearby each elements to differ in this test!

This commit is contained in:
Richard Thier 2023-07-01 06:48:38 +02:00
parent 880fb7e991
commit 259ae1e540

View File

@ -584,7 +584,10 @@ int main(void) {
measure(inputtype, "thier", [&] { thiersort_uintkey8(&w[0], w.size()); });
if(w != expected) {
for(uint32_t i = 0; i < n; ++i) {
assert(w[i] == expected[i]);
// assert(w[i] == expected[i]);
if(w[i] != expected[i]) {
fprintf(stderr, "Difference at %d: %d != %d", i, w[i], expected[i]);
}
}
}
assert(w == expected);