diff --git a/.tests/parse/axes/parse_abs_axis_name.test.lua b/.tests/parse/axes/parse_abs_axis_name.test.lua index 1d33ce6..fbee0cf 100644 --- a/.tests/parse/axes/parse_abs_axis_name.test.lua +++ b/.tests/parse/axes/parse_abs_axis_name.test.lua @@ -45,7 +45,7 @@ describe("parse_abs_axis_name", function() result ) end) - it("should work with negative x", function() + it("should work with negative z", function() local success, result = parse_abs_axis_name("-z") assert.is_true(success) assert.are.same( @@ -53,6 +53,22 @@ describe("parse_abs_axis_name", function() result ) end) + it("should work with multiple axes -x y", function() + local success, result = parse_abs_axis_name("-xy") + assert.is_true(success) + assert.are.same( + Vector3.new(-1, 1, 0), + result + ) + end) + it("should work with multiple axes z-y", function() + local success, result = parse_abs_axis_name("z-y") + assert.is_true(success) + assert.are.same( + Vector3.new(0, -1, 1), + result + ) + end) it("returns an error with invalid input", function() local success, result = parse_abs_axis_name("cheese") assert.is_false(success)