Skip to content

Commit 698112c

Browse files
committed
Fix
1 parent 9b41bf2 commit 698112c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/test/java/com/thealgorithms/conversions/AnytoAnyTest.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,9 @@ void testOctalToDecimal() {
3535

3636
@Test
3737
void testInvalidBases() {
38-
assertThrows(IllegalArgumentException.class,
39-
() -> AnytoAny.convertBase(5, 1, 10),
40-
"Source base less than 2 should throw IllegalArgumentException");
38+
assertThrows(IllegalArgumentException.class, () -> AnytoAny.convertBase(5, 1, 10), "Source base less than 2 should throw IllegalArgumentException");
4139

42-
assertThrows(IllegalArgumentException.class,
43-
() -> AnytoAny.convertBase(5, 10, 11),
44-
"Destination base greater than 10 should throw IllegalArgumentException");
40+
assertThrows(IllegalArgumentException.class, () -> AnytoAny.convertBase(5, 10, 11), "Destination base greater than 10 should throw IllegalArgumentException");
4541
}
4642

4743
@Test

0 commit comments

Comments
 (0)