Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
63acbdda
Commit
63acbdda
authored
6 years ago
by
Owen Arnold
Browse files
Options
Downloads
Patches
Plain Diff
refs #24322. Do not test undefined behaviour.
parent
9477c2ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/Geometry/test/DetectorInfoIteratorTest.h
+0
-9
0 additions, 9 deletions
Framework/Geometry/test/DetectorInfoIteratorTest.h
with
0 additions
and
9 deletions
Framework/Geometry/test/DetectorInfoIteratorTest.h
+
0
−
9
View file @
63acbdda
...
...
@@ -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
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment