-
Notifications
You must be signed in to change notification settings - Fork 52
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
base: master
Are you sure you want to change the base?
Conversation
[ci skip]
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. |
5ceb1b1
to
7b5406d
Compare
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. |
Same issue with Colors regarding operators, will try and deal with those at some point soonish. |
b734a52
to
3f5ad6a
Compare
bad6395
to
438f090
Compare
5f23a6d
to
a53fd14
Compare
[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.