-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Add tests for vector syntaxes #6163
Conversation
Looking good so far, I'm ticking off all the ones you make so that nobody else makes the same. |
As far as I can see, the remaining ones are:
then
and
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a few minor suggestions
src/main/java/ch/njol/skript/expressions/ExprVectorCylindrical.java
Outdated
Show resolved
Hide resolved
src/main/java/ch/njol/skript/expressions/ExprVectorSpherical.java
Outdated
Show resolved
Hide resolved
src/test/skript/tests/syntaxes/expressions/ExprVectorAngleBetween.sk
Outdated
Show resolved
Hide resolved
src/test/skript/tests/syntaxes/expressions/ExprVectorArithmetic.sk
Outdated
Show resolved
Hide resolved
Co-authored-by: Patrick Miller <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work.
* vector tests pt1 * Add test for vector random being within expected bounds. * Add XYZ vector test. * Add vector XYZ component test. * Add vector length test. * Add vector normalise test. * Add vector from yaw and pitch test. * Add vector of location test * Add squared length test. * Add location vector offset test. * Add missing indefinite article to syntax. * Add tests for spherical vectors. * Fix a little oopsie. * Apply suggestions from code review Co-authored-by: Patrick Miller <[email protected]> * test updates --------- Co-authored-by: Moderocky <[email protected]> Co-authored-by: Patrick Miller <[email protected]>
Description
Adds tests for all vector-related syntaxes. Fixes up some docs/pattern issues with assorted vector syntaxes as well.
Target Minecraft Versions: any
Requirements: none
Related Issues: #6158