From 8b2e503602ca95d31f593c1d53e34da75fd16b04 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Fri, 20 Mar 2020 12:56:56 +0100 Subject: [PATCH] Update incorrect test --- tests/test_AggregateConnectionData.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_AggregateConnectionData.cpp b/tests/test_AggregateConnectionData.cpp index bb6c22a1a..dc5d5f47a 100644 --- a/tests/test_AggregateConnectionData.cpp +++ b/tests/test_AggregateConnectionData.cpp @@ -793,9 +793,6 @@ BOOST_AUTO_TEST_CASE(InactiveCell) { } } - // The XCON data consults the open/shut status of the connection. That - // should already be correct, i.e. shut, for an inactive cell. Hence no - // change in the XCON vector. { const auto xconn0 = conn0.getXConn(); const auto xconn1 = conn1.getXConn(); @@ -803,6 +800,9 @@ BOOST_AUTO_TEST_CASE(InactiveCell) { std::size_t offset1 = conn_index * ih.nxconz; std::size_t offset0 = offset1; + if (conn_index >= 2) + offset0 += ih.nxconz; + for (std::size_t elm_index = 0; elm_index < ih.nxconz; elm_index++) BOOST_CHECK_EQUAL(xconn1[offset1 + elm_index], xconn0[offset0 + elm_index]); }