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

Build Unit Tests for Applicable Functions #10

Open
Cleptomania opened this issue Apr 17, 2023 · 2 comments
Open

Build Unit Tests for Applicable Functions #10

Cleptomania opened this issue Apr 17, 2023 · 2 comments
Labels
good first issue Good for newcomers tests Issues relating to tests

Comments

@Cleptomania
Copy link
Member

We already have a number of functions which would be easy and prime candidates for adding Rust unit tests for them. The ones I can think of right now are everything in the math.rs module, as well as everything in the geometry.rs module.

Other things like the HitBoxes and spritelist interaction will be more complicated to test, as they are very dependent on the rest of Arcade and python interop.

@Cleptomania Cleptomania added the tests Issues relating to tests label Apr 17, 2023
@Cleptomania
Copy link
Member Author

I have added a small unit test for the math::clamp function to serve as an example unit test.

@Cleptomania Cleptomania added the good first issue Good for newcomers label Apr 17, 2023
@Cleptomania Cleptomania changed the title Built Unit Test for Applicable Functions Build Unit Tests for Applicable Functions Apr 17, 2023
@Cleptomania
Copy link
Member Author

We now have complete unit test coverage for the math.rs and geometry.rs modules.

I'm going to leave this issue open to track general test coverage for other modules/into the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers tests Issues relating to tests
Projects
None yet
Development

No branches or pull requests

1 participant