mirror of
https://github.com/apache/commons-math.git
synced 2025-02-11 04:26:20 +00:00
Tidy up test
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066173 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
058bb97d72
commit
d063c84cbf
@ -30,19 +30,14 @@ import org.junit.Test;
|
||||
public class LogisticTest {
|
||||
private final double EPS = Math.ulp(1d);
|
||||
|
||||
@Test
|
||||
public void testPreconditions() {
|
||||
try {
|
||||
final UnivariateRealFunction f = new Logistic(1, 0, 1, 1, 0, -1);
|
||||
} catch (NotStrictlyPositiveException e) {
|
||||
// Expected.
|
||||
}
|
||||
@Test(expected=NotStrictlyPositiveException.class)
|
||||
public void testPreconditions1() {
|
||||
new Logistic(1, 0, 1, 1, 0, -1);
|
||||
}
|
||||
|
||||
try {
|
||||
final UnivariateRealFunction f = new Logistic(1, 0, 1, 1, 0, 0);
|
||||
} catch (NotStrictlyPositiveException e) {
|
||||
// Expected.
|
||||
}
|
||||
@Test(expected=NotStrictlyPositiveException.class)
|
||||
public void testPreconditions2() {
|
||||
new Logistic(1, 0, 1, 1, 0, 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user