Skip to content

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.

2 participants