Skip to content
Snippets Groups Projects
Commit 63acbdda authored by Owen Arnold's avatar Owen Arnold
Browse files

refs #24322. Do not test undefined behaviour.

parent 9477c2ac
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
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