You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 14, 2024. It is now read-only.
returnfunction()
describe("Vector3", function()
it("should be near to itself", function()
expect(Vector3.new(1, 2, 3)).to.be.near(Vector3.new(1, 2, 3)) --"Expecation value must be a number to use 'near'"end)
end)
end
near is useful for comparing numbers, but only if they are numbers. UserData types like Vector3s and CFrames can't use this feature. I would like to be able to use near on data types like these so I don't need to create my own helper functions to do it.
I can make a pull request for this change if I am given some guidance on what is ideal for the design. The main decision would be on how to store the number fields to fetch for the various types.
The text was updated successfully, but these errors were encountered:
near
is useful for comparing numbers, but only if they are numbers. UserData types likeVector3
s andCFrame
s can't use this feature. I would like to be able to usenear
on data types like these so I don't need to create my own helper functions to do it.I can make a pull request for this change if I am given some guidance on what is ideal for the design. The main decision would be on how to store the number fields to fetch for the various types.
The text was updated successfully, but these errors were encountered: