mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-16 13:03:00 +00:00
added test for h and v
This commit is contained in:
parent
7fd26687b8
commit
a58d86442d
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue