debug log for differences - I found nearby each elements to differ in this test!
This commit is contained in:
parent
880fb7e991
commit
259ae1e540
5
ypsu.cpp
5
ypsu.cpp
@ -584,7 +584,10 @@ int main(void) {
|
|||||||
measure(inputtype, "thier", [&] { thiersort_uintkey8(&w[0], w.size()); });
|
measure(inputtype, "thier", [&] { thiersort_uintkey8(&w[0], w.size()); });
|
||||||
if(w != expected) {
|
if(w != expected) {
|
||||||
for(uint32_t i = 0; i < n; ++i) {
|
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);
|
assert(w == expected);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user