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

New: Start adding some unit tests #203

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

New: Start adding some unit tests #203

wants to merge 3 commits into from

Conversation

leezer3
Copy link
Owner

@leezer3 leezer3 commented Nov 2, 2017

[ci skip]

WIP for adding unit tests for our API types, just basic addition, subtraction and negation for Vector3 at the minute.

Whilst (as far as I know....) everything works as expected, once completed this will hopefully stop stupid bugs from creeping in.
Specifically, stuff like some of the more custom string parsing functions (to times etc.) would be useful to be tested, as several oddities have been fixed in this.

@leezer3
Copy link
Owner Author

leezer3 commented Nov 2, 2017

This highlights the first issue (Minor, but there we go)....

Vector2 and Vector3 have the == operator defined, but not the Equals.

Michelle didn't implement this one, can't see a good reason why at the minute, but the compiler warning was specifically disabled.

@leezer3 leezer3 force-pushed the UnitTests branch 2 times, most recently from 5ceb1b1 to 7b5406d Compare November 2, 2017 22:48
@leezer3
Copy link
Owner Author

leezer3 commented Nov 3, 2017

Operators added, and cherry-picked onto the main branch for good measure.

Checking with the debugger, these are unused (presumably why not implemented), but using the default CLR comparisons would produce unintended results.

@leezer3
Copy link
Owner Author

leezer3 commented Nov 3, 2017

Same issue with Colors regarding operators, will try and deal with those at some point soonish.

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.

1 participant