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

impl PartialEq for Shapes, and SharedShape #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RJ
Copy link

@RJ RJ commented Aug 31, 2023

I added derive(PartialEq) to Shapes that were missing them, where possible.

implemented eq tests for some other shapes.

not sure how to compare heightfields correctly, so that is just false at the moment.

also custom shape type just returns false.

not sure if it's feasible to add PartialEq to the Shape trait bounds. I tried, and it complained due to it being used as a trait object. Perhaps this is possible, and there's a way to remove the big match statement?

Would love a review and advice on what to do about custom/heightfield.

Thanks!

see #51

@RJ RJ marked this pull request as ready for review August 31, 2023 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant