Skip to content

Commit e5dc516

Browse files
committed
Align null-input test with explicit validation
1 parent 5626d97 commit e5dc516

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/test/java/com/thealgorithms/strings/LyndonFactorizationTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ void factorizesEmptyString() {
3030

3131
@Test
3232
void rejectsNullInput() {
33-
assertThrows(NullPointerException.class, () -> LyndonFactorization.factorize(null));
33+
assertThrows(IllegalArgumentException.class, () -> LyndonFactorization.factorize(null));
3434
}
3535
}

0 commit comments

Comments
 (0)