From 41a30d843dbcf1a8b48ae9a9ccde2f0efccb42f6 Mon Sep 17 00:00:00 2001
From: Thibault Hallouin <thibault.hallouin@inrae.fr>
Date: Fri, 19 Aug 2022 10:38:24 +0200
Subject: [PATCH] fix typo in unit test on masking

resulting in only checking the first metric (i.e. BS) repeatedly
---
 tests/test_probabilist.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_probabilist.cpp b/tests/test_probabilist.cpp
index 2a6dba7..2662345 100644
--- a/tests/test_probabilist.cpp
+++ b/tests/test_probabilist.cpp
@@ -167,6 +167,6 @@ TEST(ProbabilistTests, TestMasks)
     // check results are identical
     for (int m = 0; m < metrics.size(); m++)
     {
-        EXPECT_TRUE(xt::allclose(metrics_masked[0], metrics_subset[0]));
+        EXPECT_TRUE(xt::allclose(metrics_masked[m], metrics_subset[m]));
     }
 }
\ No newline at end of file
-- 
GitLab