@@ -20,56 +20,56 @@ void finalPositionOfSnake2() {
20
20
}
21
21
22
22
@ Test
23
- void testFinalPositionOfSnake_AllCommands () {
23
+ void testFinalPositionOfSnakeAllCommands () {
24
24
List <String > commands = List .of ("UP" , "DOWN" , "LEFT" , "RIGHT" );
25
25
int result = new Solution ().finalPositionOfSnake (3 , commands );
26
26
assertEquals (4 , result );
27
27
}
28
28
29
29
@ Test
30
- void testFinalPositionOfSnake_OnlyUp () {
30
+ void testFinalPositionOfSnakeOnlyUp () {
31
31
List <String > commands = List .of ("UP" , "UP" );
32
32
int result = new Solution ().finalPositionOfSnake (3 , commands );
33
33
assertEquals (0 , result );
34
34
}
35
35
36
36
@ Test
37
- void testFinalPositionOfSnake_OnlyDown () {
37
+ void testFinalPositionOfSnakeOnlyDown () {
38
38
List <String > commands = List .of ("DOWN" , "DOWN" );
39
39
int result = new Solution ().finalPositionOfSnake (3 , commands );
40
40
assertEquals (6 , result );
41
41
}
42
42
43
43
@ Test
44
- void testFinalPositionOfSnake_OnlyLeft () {
44
+ void testFinalPositionOfSnakeOnlyLeft () {
45
45
List <String > commands = List .of ("LEFT" , "LEFT" );
46
46
int result = new Solution ().finalPositionOfSnake (3 , commands );
47
47
assertEquals (0 , result );
48
48
}
49
49
50
50
@ Test
51
- void testFinalPositionOfSnake_OnlyRight () {
51
+ void testFinalPositionOfSnakeOnlyRight () {
52
52
List <String > commands = List .of ("RIGHT" , "RIGHT" );
53
53
int result = new Solution ().finalPositionOfSnake (3 , commands );
54
54
assertEquals (2 , result );
55
55
}
56
56
57
57
@ Test
58
- void testFinalPositionOfSnake_EmptyCommands () {
58
+ void testFinalPositionOfSnakeEmptyCommands () {
59
59
List <String > commands = List .of ();
60
60
int result = new Solution ().finalPositionOfSnake (3 , commands );
61
61
assertEquals (0 , result );
62
62
}
63
63
64
64
@ Test
65
- void testFinalPositionOfSnake_MixedCommands () {
65
+ void testFinalPositionOfSnakeMixedCommands () {
66
66
List <String > commands = List .of ("DOWN" , "RIGHT" , "UP" , "LEFT" , "UP" , "DOWN" , "RIGHT" );
67
67
int result = new Solution ().finalPositionOfSnake (3 , commands );
68
68
assertEquals (4 , result );
69
69
}
70
70
71
71
@ Test
72
- void testFinalPositionOfSnake_InvalidCommands () {
72
+ void testFinalPositionOfSnakeInvalidCommands () {
73
73
List <String > commands = List .of ("DOWN" , "RIGHT" , "JUMP" , "LEFT" , "UP" , "DOWN" , "RIGHT" );
74
74
int result = new Solution ().finalPositionOfSnake (3 , commands );
75
75
assertEquals (4 , result );
0 commit comments