@@ -53,23 +53,23 @@ public void testKasaiEmptyString() {
5353
5454 @ Test
5555 public void testKasaiSingleChar () {
56- assertArrayEquals (new int []{0 }, KasaiAlgorithm .kasai ("A" , new int []{0 }));
56+ assertArrayEquals (new int [] {0 }, KasaiAlgorithm .kasai ("A" , new int [] {0 }));
5757 }
5858
5959 @ Test
6060 public void testKasaiNullTextOrSuffixArray () {
61- assertThrows (IllegalArgumentException .class , () -> KasaiAlgorithm .kasai (null , new int []{0 }));
61+ assertThrows (IllegalArgumentException .class , () -> KasaiAlgorithm .kasai (null , new int [] {0 }));
6262 assertThrows (IllegalArgumentException .class , () -> KasaiAlgorithm .kasai ("A" , null ));
6363 }
6464
6565 @ Test
6666 public void testKasaiInvalidSuffixArrayLength () {
67- assertThrows (IllegalArgumentException .class , () -> KasaiAlgorithm .kasai ("A" , new int []{0 , 1 }));
67+ assertThrows (IllegalArgumentException .class , () -> KasaiAlgorithm .kasai ("A" , new int [] {0 , 1 }));
6868 }
6969
7070 @ Test
7171 public void testKasaiInvalidSuffixArrayIndex () {
72- assertThrows (IllegalArgumentException .class , () -> KasaiAlgorithm .kasai ("A" , new int []{1 })); // Out of bounds
73- assertThrows (IllegalArgumentException .class , () -> KasaiAlgorithm .kasai ("A" , new int []{-1 })); // Out of bounds
72+ assertThrows (IllegalArgumentException .class , () -> KasaiAlgorithm .kasai ("A" , new int [] {1 })); // Out of bounds
73+ assertThrows (IllegalArgumentException .class , () -> KasaiAlgorithm .kasai ("A" , new int [] {-1 })); // Out of bounds
7474 }
7575}
0 commit comments