From 0cfe9e618922e89f49369ee7704e8e0735377b23 Mon Sep 17 00:00:00 2001 From: Richard Gowers Date: Tue, 6 Aug 2024 11:07:28 +0100 Subject: [PATCH] fix test fixture to initialise all coordinates previously only populated 1/3 of the coordinate array with values... --- libdistopia/test/test_fixtures.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdistopia/test/test_fixtures.h b/libdistopia/test/test_fixtures.h index bc2db44b..2d406eeb 100644 --- a/libdistopia/test/test_fixtures.h +++ b/libdistopia/test/test_fixtures.h @@ -163,7 +163,7 @@ class CoordinatesIdx : public ::testing::Test { ref_results = new T[nidx]; results = new T[nidx]; - RandomFloatingPoint(coords, ncoords, 0 - delta, boxsize + delta); + RandomFloatingPoint(coords, ncoords * 3, 0 - delta, boxsize + delta); RandomInt(big_idx, nidx, 0, ncoords); // copy bigidx into smaller, and also make contig coords array