mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
Add automatic linter (#4214)
This commit is contained in:
@@ -18,8 +18,7 @@ public class HammingDistanceTest {
|
||||
|
||||
@Test
|
||||
void testNotEqualStringLengths() {
|
||||
Exception exception = assertThrows(
|
||||
Exception.class, () -> HammingDistance.calculateHammingDistance("ab", "abc"));
|
||||
Exception exception = assertThrows(Exception.class, () -> HammingDistance.calculateHammingDistance("ab", "abc"));
|
||||
assertEquals("String lengths must be equal", exception.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user