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

Simplify Geometry3D tests #82288

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

aaronfranke
Copy link
Member

Each of these tests was defining a local struct to store the data for each test case, and creating an array of them. In all of the tests there were only a few entries in the array, and in most of the tests the additional complexity of the structs did not provide any scaling or readability benefit even if there were hundreds of test case data entries.

Upon further investigation, these were not given a thorough review when they were first merged. #44974 was only reviewed by one contributor, and then quickly merged the same day.

This PR simplifies the Geometry3D tests, which also brings them closer to our other tests. It also fixes some places where the case convention was not correct (ex: Vector3 GoodTriangle[3]).

Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Looks good, this was a bit overengineered indeed.

@akien-mga akien-mga modified the milestones: 4.x, 4.2 Sep 25, 2023
@akien-mga akien-mga merged commit ce04b9a into godotengine:master Sep 25, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@aaronfranke aaronfranke deleted the simplify-geometry3d-tests branch September 25, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants