From 7a688969b253eff3134607e94fe80513cbb5d340 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 19 Sep 2022 01:31:47 +0100 Subject: [PATCH] fix tests --- .tests/Vector3/divide.test.lua | 6 +++--- .tests/parse/axes/parse_abs_axis_name.test.lua | 2 +- worldeditadditions_core/utils/parse/axes_parser.lua | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.tests/Vector3/divide.test.lua b/.tests/Vector3/divide.test.lua index 25bfd9b..6a57f75 100644 --- a/.tests/Vector3/divide.test.lua +++ b/.tests/Vector3/divide.test.lua @@ -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) diff --git a/.tests/parse/axes/parse_abs_axis_name.test.lua b/.tests/parse/axes/parse_abs_axis_name.test.lua index 6210e8f..200ff9c 100644 --- a/.tests/parse/axes/parse_abs_axis_name.test.lua +++ b/.tests/parse/axes/parse_abs_axis_name.test.lua @@ -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 diff --git a/worldeditadditions_core/utils/parse/axes_parser.lua b/worldeditadditions_core/utils/parse/axes_parser.lua index 3004e07..e9dc624 100644 --- a/worldeditadditions_core/utils/parse/axes_parser.lua +++ b/worldeditadditions_core/utils/parse/axes_parser.lua @@ -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