mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23: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)
|
||||
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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue