mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
@@ -15,10 +15,8 @@ public class AbsoluteMinTest {
|
||||
|
||||
@Test
|
||||
void testGetMinValueWithNoArguments() {
|
||||
Exception exception = assertThrows(
|
||||
IllegalArgumentException.class,
|
||||
() -> AbsoluteMin.getMinValue()
|
||||
);
|
||||
Exception exception
|
||||
= assertThrows(IllegalArgumentException.class, () -> AbsoluteMin.getMinValue());
|
||||
assertEquals("Numbers array cannot be empty", exception.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user