From a58d86442d066d08255707e80bfb47d98c4cd23d Mon Sep 17 00:00:00 2001 From: VorTechnix <45538536+VorTechnix@users.noreply.github.com> Date: Thu, 20 Jul 2023 14:06:28 -0700 Subject: [PATCH] added test for h and v --- .tests/parse/axes/axes_parser.test.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.tests/parse/axes/axes_parser.test.lua b/.tests/parse/axes/axes_parser.test.lua index 0b5f6e6..40a2cec 100644 --- a/.tests/parse/axes/axes_parser.test.lua +++ b/.tests/parse/axes/axes_parser.test.lua @@ -29,6 +29,16 @@ describe("parse_axes", function() assert.are.same(Vector3.new(10, 10, 10), maxv) end) + it("should work for h and v", function() + local minv, maxv = parse_axes({ + "h", "3", + "-v", "4", + }, facing_dirs.x_pos) + assert.is.truthy(minv) + assert.are.same(Vector3.new(0, -4, 0), minv) + assert.are.same(Vector3.new(3, 0, 3), maxv) + end) + it("should work on directions and their abriviations", function() local minv, maxv = parse_axes({ "l", "3", -- +z