From 259ae1e540f10d712803f2e0361ace9d9e8ba820 Mon Sep 17 00:00:00 2001 From: Richard Thier Date: Sat, 1 Jul 2023 06:48:38 +0200 Subject: [PATCH] debug log for differences - I found nearby each elements to differ in this test! --- ypsu.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ypsu.cpp b/ypsu.cpp index d6c53a8..f7a0c9c 100644 --- a/ypsu.cpp +++ b/ypsu.cpp @@ -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);