Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Test Python wrapping with both SetPoints and SetPointsByCoordinates #4896

Conversation

N-Dekker
Copy link
Contributor

@N-Dekker N-Dekker commented Oct 24, 2024

With this commit, those tests try both using SetPointsByCoordinates and using the unsafe SetPoints overload.


👉 It may be helpful to ignore white-space changes, when reviewing: https://github.com/InsightSoftwareConsortium/ITK/pull/4896/files?w=1

The SetPoints calls in two serialization tests appear unsafe, as was reported by
issue InsightSoftwareConsortium#4848
"`PointSet::SetPoints(PointsVectorContainer *)` overload leads to undefined behavior".

With this commit, those tests try both using SetPointsByCoordinates and using
the unsafe SetPoints overload.
@github-actions github-actions bot added type:Enhancement Improvement of existing methods or implementation area:Python wrapping Python bindings for a class type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct area:Core Issues affecting the Core module labels Oct 24, 2024
@N-Dekker N-Dekker requested a review from thewtex October 24, 2024 13:46
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@N-Dekker very nice, thank you!!

@thewtex thewtex merged commit bfa1be6 into InsightSoftwareConsortium:master Oct 24, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Core Issues affecting the Core module area:Python wrapping Python bindings for a class type:Enhancement Improvement of existing methods or implementation type:Testing Ensure that the purpose of a class is met/the results on a wide set of test cases are correct
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants