Migrate commons-numbers-gamma to JUnit 5: class ErfDifferenceTest
*/
package org.apache.commons.numbers.gamma;
-import org.junit.Assert;
+import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
/**
@@ -35,8 +35,8 @@ public class ErfDifferenceTest {
double a = ErfDifference.value(x1, x2);
double b = Erf.value(x2) - Erf.value(x1);
double c = Erfc.value(x1) - Erfc.value(x2);
- Assert.assertEquals(a, b, 1e-15);
- Assert.assertEquals(a, c, 1e-15);
+ Assertions.assertEquals(a, b, 1e-15);
+ Assertions.assertEquals(a, c, 1e-15);
}
}
}
