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:
Sebastian Bazley 2011-02-01 19:45:20 +00:00
parent 058bb97d72
commit d063c84cbf

View File

@ -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