1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-10-16 15:45:27 +02:00

Genericize relative direction handling

This commit is contained in:
sfan5
2025-09-24 17:35:25 +02:00
parent 3a79209268
commit 0573cd8755
4 changed files with 120 additions and 129 deletions

View File

@@ -63,6 +63,31 @@ register_test("//inset", make_parsing_test("inset", {
"v foo",
}))
register_test("//shift", make_parsing_test("shift", {
"x 1",
"x -4",
"back 1",
"? 1",
}, {
"+z 1212",
"-z 9",
"xx -5",
"?? 123",
}))
register_test("//expand", make_parsing_test("expand", {
"x 1",
"z 1 2",
"? 1",
"+? 1",
"+left 1",
"-right 1",
}, {
"x -4",
"? 4 -333",
"stupid 5 5",
}))
register_test("//cubeapply", make_parsing_test("cubeapply", {
"2 orient 90",
"2 3 4 orient 90",