mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-08-21 05:54:06 +02:00
tests/new: fix Vector3 tests
This commit is contained in:
parent
0fef39d707
commit
1930b8c64d
@ -7,18 +7,18 @@ describe("Vector3.add", function()
|
|||||||
Vector3.new(3, 4, 5)
|
Vector3.new(3, 4, 5)
|
||||||
)
|
)
|
||||||
end)
|
end)
|
||||||
it("should throw an error on invalid x", function()
|
it("should not throw an error on invalid x", function()
|
||||||
assert.has.errors(function()
|
assert.has_no.errors(function()
|
||||||
Vector3.new("cheese", 4, 5)
|
Vector3.new("cheese", 4, 5)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
it("should throw an error on invalid y", function()
|
it("should not throw an error on invalid y", function()
|
||||||
assert.has.errors(function()
|
assert.has_no.errors(function()
|
||||||
Vector3.new(4, "cheese", 5)
|
Vector3.new(4, "cheese", 5)
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
it("should throw an error on invalid z", function()
|
it("should not throw an error on invalid z", function()
|
||||||
assert.has.errors(function()
|
assert.has_no.errors(function()
|
||||||
Vector3.new(66, 2, "cheese")
|
Vector3.new(66, 2, "cheese")
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user