Skip to content

Commit f9ad4f0

Browse files
committed
Add input tests
1 parent cd445c0 commit f9ad4f0

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

test/script/edamame.js

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,37 @@ ui.debug.addDebugData("edamame", {
88
"pzprv3/edamame/3/3/. . 0 /1 . . /. . . /0 0 0 /0 0 0 /3 1 3 /0 0 /0 0 /1 1 /0 0 0 /0 0 0 /"
99
]
1010
],
11-
inputs: []
11+
inputs: [
12+
{
13+
input: [
14+
"newboard,3,2",
15+
"playmode",
16+
"mouse,left,1,1",
17+
"mouse,right,3,1",
18+
"mouse,alt+left,3,1",
19+
"mouse,alt+right,5,1"
20+
],
21+
result:
22+
"pzprv3/edamame/2/3/. . . /. . . /1 20 32 /0 0 0 /0 0 /0 0 /0 0 0 /"
23+
},
24+
{
25+
input: ["mouse,left,1,3,3,3", "mouse,left,1,3", "mouse,leftx2,3,3"],
26+
result:
27+
"pzprv3/edamame/2/3/. . . /. . . /1 20 32 /1 3 0 /0 0 /1 0 /0 0 0 /"
28+
},
29+
{
30+
input: [
31+
"playmode,bgcolor1",
32+
"mouse,left,5,3",
33+
"playmode,bgcolor2",
34+
"mouse,left,3,3",
35+
"playmode,mark-circle",
36+
"mouse,left,5,1",
37+
"playmode,subcross",
38+
"mouse,left,5,3"
39+
],
40+
result:
41+
"pzprv3/edamame/2/3/. . . /. . . /1 20 33 /1 35 20 /0 0 /1 0 /0 0 0 /"
42+
}
43+
]
1244
});

0 commit comments

Comments
 (0)