mirror of
https://github.com/TheAlgorithms/Java.git
synced 2026-03-13 08:40:43 +08:00
style: include UTAO_JUNIT_ASSERTION_ODDITIES_ACTUAL_CONSTANT (#7239)
This commit is contained in:
@@ -8,19 +8,19 @@ public class StandardDeviationTest {
|
||||
@Test
|
||||
void test1() {
|
||||
double[] t1 = new double[] {1, 1, 1, 1, 1};
|
||||
Assertions.assertEquals(StandardDeviation.stdDev(t1), 0.0);
|
||||
Assertions.assertEquals(0.0, StandardDeviation.stdDev(t1));
|
||||
}
|
||||
|
||||
@Test
|
||||
void test2() {
|
||||
double[] t2 = new double[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
|
||||
Assertions.assertEquals(StandardDeviation.stdDev(t2), 2.8722813232690143);
|
||||
Assertions.assertEquals(2.8722813232690143, StandardDeviation.stdDev(t2));
|
||||
}
|
||||
|
||||
@Test
|
||||
void test3() {
|
||||
double[] t3 = new double[] {1.1, 8.5, 20.3, 2.4, 6.2};
|
||||
Assertions.assertEquals(StandardDeviation.stdDev(t3), 6.8308125431752265);
|
||||
Assertions.assertEquals(6.8308125431752265, StandardDeviation.stdDev(t3));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -32,6 +32,6 @@ public class StandardDeviationTest {
|
||||
100.00045,
|
||||
56.7,
|
||||
};
|
||||
Assertions.assertEquals(StandardDeviation.stdDev(t4), 38.506117353865775);
|
||||
Assertions.assertEquals(38.506117353865775, StandardDeviation.stdDev(t4));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user