tests/new: fix Vector3 tests

This commit is contained in:
Starbeamrainbowlabs 2021-07-15 02:19:42 +01:00
parent 0fef39d707
commit 1930b8c64d
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 6 additions and 6 deletions

View File

@ -7,18 +7,18 @@ describe("Vector3.add", function()
Vector3.new(3, 4, 5)
)
end)
it("should throw an error on invalid x", function()
assert.has.errors(function()
it("should not throw an error on invalid x", function()
assert.has_no.errors(function()
Vector3.new("cheese", 4, 5)
end)
end)
it("should throw an error on invalid y", function()
assert.has.errors(function()
it("should not throw an error on invalid y", function()
assert.has_no.errors(function()
Vector3.new(4, "cheese", 5)
end)
end)
it("should throw an error on invalid z", function()
assert.has.errors(function()
it("should not throw an error on invalid z", function()
assert.has_no.errors(function()
Vector3.new(66, 2, "cheese")
end)
end)