-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_test.go
86 lines (58 loc) · 2.76 KB
/
main_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package tests
import (
"testing"
"github.com/bjartek/overflow"
)
func TestDeployContracts(t *testing.T) {
overflow.Overflow()
}
func TestNewGameMap_10_1Player(t *testing.T) {
o := overflow.Overflow()
o.Tx(
"new_game_10",
overflow.WithSigner("gamer"),
overflow.WithArg("snakeCount", 1),
).Print()
// LURRDDRRRRRULLDDDDRRDDD
t.Fail()
}
func TestNewGameMap_10_4Player(t *testing.T) {
o := overflow.Overflow()
o.Tx(
"new_game_10",
overflow.WithSigner("gamer"),
overflow.WithArg("snakeCount", 4),
).Print()
// LLRLULRLRLRLRLUUDLUUDDUU
t.Fail()
}
func TestNewGameMap_25_4Player(t *testing.T) {
o := overflow.Overflow()
o.Tx(
"new_game_25",
overflow.WithSigner("gamer"),
overflow.WithArg("snakeCount", 4),
).Print()
// RLRLDLRLRDUURDUURRULDRRLDDRLDDRLRLRLRLRLDLRLDLRLDLRDRLURRLURRLURRLURUDUUURRULRRULRRULDRULDRUUDRRUDUDUDLLULLLULLLLLLLLLLLLLLLLLLLLLLLDLLLLLLLLLLLULLLU
t.Fail()
}
func TestNewGameMap_100_4Player(t *testing.T) {
o := overflow.Overflow()
o.Tx(
"new_game_100",
overflow.WithSigner("gamer"),
overflow.WithArg("snakeCount", 4),
).Print()
// RLULRLULRLRLRLRURLRURLRURLRURLRURLRUULRURLRURLRURLDURLRLRLRLDLRLDLRLDLRURLRLRLRURDRURDRURDRURLRURLRURDRURDUURDUURDUURDUURLUURLLUDLLUDLUURLUUDLUUDLULDLULDLULDLULDLULLLUULUUULUUUDUUUDUUURUUURUUURUUURUUURLUUDLRUDLRUDLRURLRLRLRLRLRLRLDLRLRLRLRLDLRLDLRLDLRLDLRLDLRLDLRDRLRDULRDUDRDUDRDUDRDUDRLUDRLUDRLULRLULRLULRDULDDULDDULDLULDLRLDLRLDLRLRLRLRLRLRUDLRUDLRUDLDUDLDUDLDUDLDUDLDUDLDUDLDUDLDUDLDLDLRLDLRLDLRLDLDLDLDDDLDDDLDDDLDDDLRLDLRLDLRLDLRLDLRLDLRLDDRLDDRURDRUDDRUDDRLDDRLDDULDDULDDULDDULDDUUDDUUDLUUDLUUDUUUDUUUDRLRRRLRRRLRRRLRRRLRRRLRRRLRRDLRRDLRRDLRRDLRRDLRUDLDUDLLUDLLUDLLUDLLRDLLRLLLRLLLRDLLRDLLRDLLUDLLUDLLUDLLURLLURLLURLLURLLUDDLRDDLRDDLRDDLRDDLRDDLRDDLRRDLRDDLRDDLDDDLDDDLLDDLDDDLDDLLDRLLDRLLRDLLRDLLRDLLRLLDRLLLULLLULLLRLLLRLLLRLLLRLLLRLLLRLLLRLLLRLLLRLLLULLLULLLUDLLUDLDUDLDUDLDUDLDUDLDUDLDUDLDUDLDUDLRURLRRRLRRRLRRRLRRRLRRRLRRRURRRURRRRRURRRURRRURRRRRRRURRRURRRURRRRRRRRRRRRRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRDRRRD
t.Fail()
}
func TestNewGameMap_50_4Player(t *testing.T) {
o := overflow.Overflow()
o.Tx(
"new_game_50",
overflow.WithSigner("gamer"),
overflow.WithArg("snakeCount", 4),
).Print()
// DRRLDUULDLUDDLURDLURRLURRLULULURRDULRLURRLULRLRRRLRLRLDRRLRLDLRRDLRLRLRRRDRLRRRRRRRLRDRRDDDLLDRRLDRLLDRRLDRLLDRRLDRLLRURLRULDUURDRRLDRRRRRRLDRURDDULDDURDDLLLDLRLDULLLURDDULDDURDDULDDLRRDLLDDURDLULRDURRDULRDURDDULDDLRDDULDDURRDULRLURDDULDDURDRRLDRRRDRRLDRRRRRRLRRRRDDULLDURLDULLLURLDRLLDRRLRULLRRRLRDLLDDRLRDLLDDRLDDLLDDRUDRLUDDRUDDLUDDRUDDLUDDLRLDLRLRLRLRLRLULRLULRLRLRLRLRLRLRLDLRLDLRLDURUDURUDURURLULRLULRLULRLULULUUULULULUDULUDUDUDUDULULULULULUUULUUULUUUULLULLLULLLULLLULLLULLLULLLULLDRDLDRRLRRRLRRRLRRRUURDUURDULRDULRLULU
t.Fail()
}