-
-
Notifications
You must be signed in to change notification settings - Fork 18
fix: div operator #1520
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
base: main
Are you sure you want to change the base?
fix: div operator #1520
Conversation
pkg.pr.new packages
benchmark commit |
Put on hold, depends on #1446 |
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.
Pull Request Overview
Bueno
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 change!
expect(div(3, vec4i(5, 6, 7, 8))).toStrictEqual(vec4i(1, 2, 2, 2)); | ||
expect(div(1, vec2i(1, 2))).toStrictEqual(vec2i(1, 0)); | ||
expect(div(2, vec3i(1, 2, 3))).toStrictEqual(vec3i(2, 1, 0)); | ||
expect(div(3, vec4i(5, 6, 7, 8))).toStrictEqual(vec4i(0, 0, 0, 0)); |
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.
expect(div(3, vec4i(5, 6, 7, 8))).toStrictEqual(vec4i(0, 0, 0, 0)); | |
expect(div(3, vec4i(5, 6, 7, 8))).toStrictEqual(vec4i()); |
Or vec4i(0) if we want to be explicit
Fixed
/
operator issue