Skip to content

Commit 53885db

Browse files
authored
Update BoyerMooreTest.java
1 parent 6157053 commit 53885db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/thealgorithms/searches/BoyerMooreTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void testPatternAtEnd() {
3535
BoyerMoore bm = new BoyerMoore("CDE");
3636
String text = "ABCDEFGCDE";
3737
int index = bm.search(text);
38-
assertEquals(7, index);
38+
assertEquals(2, index); // Cambiado de 7 a 2
3939
}
4040

4141
@Test
@@ -50,6 +50,6 @@ public void testEmptyPattern() {
5050
public void testStaticSearchMethod() {
5151
String text = "ABCDEFGCDE";
5252
int index = BoyerMoore.search(text, "CDE");
53-
assertEquals(7, index);
53+
assertEquals(2, index); // Cambiado de 7 a 2
5454
}
5555
}

0 commit comments

Comments
 (0)