From 30812e134eeb5c969f78219dc095b1b3ed70feba Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 24 Mar 2023 15:27:58 +0100 Subject: [PATCH] Reduce test cases in sort_replace --- test/unit/sort_replace.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/sort_replace.c b/test/unit/sort_replace.c index f5df69a..abf633e 100644 --- a/test/unit/sort_replace.c +++ b/test/unit/sort_replace.c @@ -85,10 +85,11 @@ test_sort_replace(void) { int64_t nmin = 2; int64_t nmax = 300; - int64_t nrun = 500; + int64_t nstep = 5; + int64_t nrun = 50; srand(123); - for (int64_t n = nmin; n <= nmax; n++) { + for (int64_t n = nmin; n <= nmax; n += nstep) { for (int64_t run = 0; run < nrun; run++) test_case(n, run); err("n = %ld OK", n);