Skip to content

Commit 774907b

Browse files
committed
Inputtests
1 parent 3b7f1d1 commit 774907b

1 file changed

Lines changed: 65 additions & 1 deletion

File tree

test/script/landmeasure.js

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,69 @@ ui.debug.addDebugData("landmeasure", {
3232
"pzprv3/landmeasure/6/6/. . . . . . . /. 7 . . - . 2 /. . . . . . . /. . . . . . . /. 9 . . . 3 . /. . . . . . . /. 0 . . 2 . . /. # # # . # /# . # . # # /# # # # . . /# . . # # # /. # # # . # /. . . # # . /"
3333
]
3434
],
35-
inputs: []
35+
inputs: [
36+
{
37+
input: [
38+
"newboard,3,3",
39+
"editmode",
40+
"mouse,leftx2,2,0",
41+
"mouse,rightx2,0,2",
42+
"mouse,rightx2,6,6",
43+
"mouse,leftx2,2,2",
44+
"mouse,rightx2,4,2",
45+
"playmode",
46+
"mouse,left,1,1"
47+
],
48+
result:
49+
"pzprv3/landmeasure/3/3/. 0 . . /2 0 - . /. . . . /. . . 1 /# . . /. . . /. . . /"
50+
},
51+
{
52+
input: ["editmode,number", "cursor,2,2", "key,3,right,4,down,7,left,-"],
53+
result:
54+
"pzprv3/landmeasure/3/3/. 0 . . /2 3 4 . /. - 7 . /. . . 1 /# . . /. . . /. . . /"
55+
},
56+
{
57+
input: [
58+
"mouse,leftx2,2,2",
59+
"mouse,leftx2,4,2",
60+
"mouse,leftx2,2,4",
61+
"mouse,leftx2,4,4"
62+
],
63+
result:
64+
"pzprv3/landmeasure/3/3/. 0 . . /2 7 7 . /. . - . /. . . 1 /# . . /. . . /. . . /"
65+
},
66+
{
67+
input: ["mouse,rightx2,2,2", "mouse,rightx3,4,2", "mouse,rightx2,4,4"],
68+
result:
69+
"pzprv3/landmeasure/3/3/. 0 . . /2 3 2 . /. . 7 . /. . . 1 /# . . /. . . /. . . /"
70+
},
71+
{
72+
input: ["editmode,clear", "mouse,left,0,2,4,2"],
73+
result:
74+
"pzprv3/landmeasure/3/3/. 0 . . /. . . . /. . 7 . /. . . 1 /# . . /. . . /. . . /"
75+
},
76+
{
77+
input: [
78+
"newboard,4,3",
79+
"editmode,auto",
80+
"cursor,0,0",
81+
"key,1,right,down,7,right,8,right,9,down,9,left,8,left,7"
82+
],
83+
result:
84+
"pzprv3/landmeasure/3/4/1 . . . . /. 7 8 9 . /. 7 8 9 . /. . . . . /. . . . /. . . . /. . . . /"
85+
},
86+
{
87+
input: [
88+
"mouse,leftx2,0,0",
89+
"mouse,leftx2,2,2",
90+
"mouse,leftx2,4,2",
91+
"mouse,leftx2,6,2",
92+
"mouse,rightx2,2,4",
93+
"mouse,rightx2,4,4",
94+
"mouse,rightx2,6,4"
95+
],
96+
result:
97+
"pzprv3/landmeasure/3/4/. . . . . /. 9 9 11 . /. 3 7 7 . /. . . . . /. . . . /. . . . /. . . . /"
98+
}
99+
]
36100
});

0 commit comments

Comments
 (0)