fix tests

This commit is contained in:
Starbeamrainbowlabs 2022-09-19 01:31:47 +01:00
parent 1ae36d3898
commit 7a688969b2
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
3 changed files with 5 additions and 5 deletions

View file

@ -18,10 +18,10 @@ describe("Vector3.divide", function()
)
end)
it("should work with scalar a", function()
local a = 2
local b = Vector3.new(12, 14, 16)
local a = 100
local b = Vector3.new(4, 5, 2)
assert.are.same(
Vector3.new(6, 7, 8),
Vector3.new(25, 20, 50),
a / b
)
end)

View file

@ -1,6 +1,6 @@
local Vector3 = require("worldeditadditions_core.utils.vector3")
local axes = require("worldeditadditions.utils.parse.axes")
local axes = require("worldeditadditions_core.utils.parse.axes")
local parse_abs_axis_name = axes.parse_abs_axis_name

View file

@ -22,7 +22,7 @@ if worldeditadditions_core then
Vector3 = dofile(wea_c.modpath.."/utils/vector3.lua")
else
Vector3 = require("worldeditadditions_core.utils.vector3")
key_instance = require("worldeditadditions.utils.parse.key_instance")
key_instance = require("worldeditadditions_core.utils.parse.key_instance")
end