Skip to content

Commit 1ef23b2

Browse files
authored
Remove unused imports and clean up CorrelationTest
1 parent b366607 commit 1ef23b2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
44

5-
import org.junit.jupiter.params.ParameterizedTest;
6-
import org.junit.jupiter.params.provider.CsvSource;
7-
85
/**
96
* Test class for Correlation class
107
*/
@@ -18,13 +15,13 @@ public void testCorrelationFirst() {
1815
int n = 4;
1916
assertEquals(0.3319700011, Correlation.correlation(x, y, n), DELTA);
2017
}
21-
18+
2219
public void testCorrelationSecond() {
2320
double[] x = {1, 2, 3, 4};
2421
double[] y = {5, 0, 9, 2};
2522
int n = 4;
2623
assertEquals(0, Correlation.correlation(x, y, n), DELTA);
27-
}
24+
}
2825

2926
public void testCorrelationConstant() {
3027
double[] x = {1, 2, 3};

0 commit comments

Comments
 (0)