Skip to content

Commit f11b714

Browse files
authored
style: Fix linter formatting issues.
1 parent 8176ae1 commit f11b714

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/test/java/com/thealgorithms/maths/NevilleTest.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,14 @@ public void testMismatchedArrayLengths() {
4848
double[] x = {1, 2};
4949
double[] y = {1};
5050
double target = 1.5;
51-
assertThrows(IllegalArgumentException.class, () -> {
52-
Neville.interpolate(x, y, target);
53-
});
51+
assertThrows(IllegalArgumentException.class, () -> Neville.interpolate(x, y, target));
5452
}
5553

5654
@Test
5755
public void testEmptyArrays() {
5856
double[] x = {};
5957
double[] y = {};
6058
double target = 1;
61-
assertThrows(IllegalArgumentException.class, () -> {
62-
Neville.interpolate(x, y, target);
63-
});
59+
assertThrows(IllegalArgumentException.class, () -> Neville.interpolate(x, y, target));
6460
}
65-
}
61+
}

0 commit comments

Comments
 (0)