diff --git a/Framework/Geometry/test/DetectorInfoIteratorTest.h b/Framework/Geometry/test/DetectorInfoIteratorTest.h index 6d63c9b6c1ad76b5fc49c4aa3404a813c1b0f408..4626086642ea537c7a47e42aa1102194d2d80123 100644 --- a/Framework/Geometry/test/DetectorInfoIteratorTest.h +++ b/Framework/Geometry/test/DetectorInfoIteratorTest.h @@ -166,15 +166,6 @@ public: !bidirectionalit); // see https://en.cppreference.com/w/cpp/iterator/advance - // Demonstrate internal switched behaviour in std::advance - auto detectorInfo = create_detector_info_object(); - auto it = detectorInfo->cbegin(); - TS_ASSERT_EQUALS(it->index(), 0); - std::advance(it, 2); - TS_ASSERT_EQUALS(it->index(), 2); - std::advance(it, -2); - TSM_ASSERT_EQUALS("Was not decremented. Not zero. For reasons above", - it->index(), 2); } void test_iterator_advance_and_positions() {