From 1930b8c64df7bb1eb5f2253e540df2762b6e2261 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 15 Jul 2021 02:19:42 +0100 Subject: [PATCH] tests/new: fix Vector3 tests --- .tests/Vector3/new.test.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.tests/Vector3/new.test.lua b/.tests/Vector3/new.test.lua index b74e5b1..54a5c72 100644 --- a/.tests/Vector3/new.test.lua +++ b/.tests/Vector3/new.test.lua @@ -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)