Skip to content
Snippets Groups Projects
Commit 86c7d079 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

SimulationAreaTest: rm unused var; inline vars

parent 3dbedce5
No related branches found
No related tags found
1 merge request!2018further cleanup prior to #724 etc
Pipeline #115128 passed
......@@ -112,15 +112,12 @@ TEST(SimulationAreaTest, indexInRoi)
detector.setRegionOfInterest(0.1, 1.1, 2.9, 3.9);
detector.addMask(Rectangle(-0.9, 0.1, 0.9, 1.9), true);
std::vector<size_t> expectedDetectorIndexes = {6, 7, 9, 10, 11, 13, 14, 15};
std::vector<size_t> expectedRoi = {1, 2, 3, 4, 5, 6, 7, 8};
std::vector<size_t> indexes;
std::vector<size_t> roiIndexes;
std::vector<size_t> detectorIndexes;
detector.iterateOverNonMaskedPoints([&](const auto it) {
roiIndexes.push_back(it.roiIndex());
detectorIndexes.push_back(it.detectorIndex());
});
EXPECT_EQ(roiIndexes, expectedRoi);
EXPECT_EQ(detectorIndexes, expectedDetectorIndexes);
EXPECT_EQ(roiIndexes, std::vector<size_t>({1, 2, 3, 4, 5, 6, 7, 8}));
EXPECT_EQ(detectorIndexes, std::vector<size_t>({6, 7, 9, 10, 11, 13, 14, 15}));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment