@@ -31,39 +31,39 @@ public void setup() {
31
31
}
32
32
33
33
@ Test
34
- public void testBoggleBoard_FindsAllWords () {
34
+ public void testBoggleBoardFindsAllWords () {
35
35
List <String > expected = Arrays .asList ("this" , "is" , "a" , "simple" , "board" , "boggle" , "NOTRE_PEATED" );
36
36
List <String > result = WordBoggle .boggleBoard (board , words );
37
37
assertEquals (expected .size (), result .size ());
38
38
assertTrue (expected .containsAll (result ));
39
39
}
40
40
41
41
@ Test
42
- public void testBoggleBoard_NoMatchingWords () {
42
+ public void testBoggleBoardNoMatchingWords () {
43
43
// Test with words that don't exist on the board
44
44
String [] nonMatchingWords = {"xyz" , "hello" , "world" };
45
45
List <String > result = WordBoggle .boggleBoard (board , nonMatchingWords );
46
46
assertEquals (0 , result .size ());
47
47
}
48
48
49
49
@ Test
50
- public void testBoggleBoard_EmptyBoard () {
50
+ public void testBoggleBoardEmptyBoard () {
51
51
// Test with an empty board
52
52
char [][] emptyBoard = new char [0 ][0 ];
53
53
List <String > result = WordBoggle .boggleBoard (emptyBoard , words );
54
54
assertEquals (0 , result .size ());
55
55
}
56
56
57
57
@ Test
58
- public void testBoggleBoard_EmptyWordsArray () {
58
+ public void testBoggleBoardEmptyWordsArray () {
59
59
// Test with an empty words array
60
60
String [] emptyWords = {};
61
61
List <String > result = WordBoggle .boggleBoard (board , emptyWords );
62
62
assertEquals (0 , result .size ());
63
63
}
64
64
65
65
@ Test
66
- public void testBoggleBoard_SingleCharacterWords () {
66
+ public void testBoggleBoardSingleCharacterWords () {
67
67
// Test with single-character words
68
68
String [] singleCharWords = {"a" , "x" , "o" };
69
69
List <String > expected = Arrays .asList ("a" , "o" );
@@ -72,7 +72,7 @@ public void testBoggleBoard_SingleCharacterWords() {
72
72
}
73
73
74
74
@ Test
75
- public void testBoggleBoard_DuplicateWordsInInput () {
75
+ public void testBoggleBoardDuplicateWordsInInput () {
76
76
// Test with duplicate words in the input array
77
77
String [] duplicateWords = {"this" , "this" , "board" , "board" };
78
78
List <String > expected = Arrays .asList ("this" , "board" );
0 commit comments