Skip to content

test: created a basic class to test points - #2280

Merged
Eideren merged 2 commits into
stride3d:masterfrom
dloe:TestPoint
May 26, 2024
Merged

Eideren merged 2 commits into
stride3d:masterfrom
dloe:TestPoint

Conversation

@soorMSWE

Copy link
Copy Markdown
Contributor

PR Details

I was looking through places to add testing in the game engine and found that there were no tests for the Point class in Stride.Mathematics. In order to add completeness and increase code coverage of the system, I figured I would add a couple simple tests just to make sure that the points are working as they are supposed to.

Description

I added a couple simple tests for the Point class in Stride.Mathematics. They are very basic and can be added to or modified if desired.

Related Issue

There is no issue related to this pull request.

Motivation and Context

This change is not required. I simply added a couple tests to increase code coverage of the project.

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My change requires a change to the documentation.
  • I have added tests to cover my changes.
  • [x ] All new and existing tests passed.
  • [x ] I have built and run the editor to try this change out.

@soorMSWE

Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree

@Eideren

Eideren commented May 25, 2024

Copy link
Copy Markdown
Collaborator

Hey, thanks a bunch for contributing ! Just a note, since those tests expect those 3 points to be constant I think it would be more appropriate to mark them as readonly or you could instead move them inside the scope of each function, as you want. That way there is no ambiguity as to their usage.

@soorMSWE

Copy link
Copy Markdown
Contributor Author

Sure, I will do that right now. Thank you for the feedback!

@Eideren
Eideren merged commit c2c25f2 into stride3d:master May 26, 2024
@Eideren

Eideren commented May 26, 2024

Copy link
Copy Markdown
Collaborator

Looks good, thanks !

@Eideren Eideren added the area-Math Issues related to the Stride.Core.Mathematics namespace label May 26, 2024
@Eideren Eideren changed the title created a basic class to test points test: created a basic class to test points May 26, 2024
xen2 pushed a commit to xen2/stride that referenced this pull request Jul 16, 2026
* created a basic class to test points

* added readonly to the test points
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Math Issues related to the Stride.Core.Mathematics namespace

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants