mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +00:00
fix tests
This commit is contained in:
parent
1ae36d3898
commit
7a688969b2
3 changed files with 5 additions and 5 deletions
|
@ -18,10 +18,10 @@ describe("Vector3.divide", function()
|
||||||
)
|
)
|
||||||
end)
|
end)
|
||||||
it("should work with scalar a", function()
|
it("should work with scalar a", function()
|
||||||
local a = 2
|
local a = 100
|
||||||
local b = Vector3.new(12, 14, 16)
|
local b = Vector3.new(4, 5, 2)
|
||||||
assert.are.same(
|
assert.are.same(
|
||||||
Vector3.new(6, 7, 8),
|
Vector3.new(25, 20, 50),
|
||||||
a / b
|
a / b
|
||||||
)
|
)
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
local Vector3 = require("worldeditadditions_core.utils.vector3")
|
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
|
local parse_abs_axis_name = axes.parse_abs_axis_name
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ if worldeditadditions_core then
|
||||||
Vector3 = dofile(wea_c.modpath.."/utils/vector3.lua")
|
Vector3 = dofile(wea_c.modpath.."/utils/vector3.lua")
|
||||||
else
|
else
|
||||||
Vector3 = require("worldeditadditions_core.utils.vector3")
|
Vector3 = require("worldeditadditions_core.utils.vector3")
|
||||||
key_instance = require("worldeditadditions.utils.parse.key_instance")
|
key_instance = require("worldeditadditions_core.utils.parse.key_instance")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue