Gut icon indicating copy to clipboard operation
Gut copied to clipboard

assert_almost_eq should accept a float or int as third parameter when comparing Vectors

Open bitwes opened this issue 4 years ago • 0 comments

I think in most cases, when asserting a Vector is almost eq to another, the threshold will be the same for all parts of the vector. To make the assert easier to use and more readable, assert_almost_eq and assert_almost_ne should treat the third parameter as all parts of a vector2 or vector3 when the value is a float or int.

bitwes avatar Oct 20 '21 16:10 bitwes