@Test
public void testBadArguments() {
try {
new Empirical(true, false, 20, 0, 1, 0.5, 2, 0.9, 9, 0.99, 10.0);
Assert.fail("Should have caught that");
} catch (IllegalArgumentException e) {
}
try {
new Empirical(false, true, 20, 0.1, 1, 0.5, 2, 0.9, 9, 1, 10.0);
Assert.fail("Should have caught that");
} catch (IllegalArgumentException e) {
}
try {
new Empirical(true, true, 20, -0.1, 1, 0.5, 2, 0.9, 9, 1, 10.0);
Assert.fail("Should have caught that");
} catch (IllegalArgumentException e) {
}
try {
new Empirical(true, true, 20, 0, 1, 0.5, 2, 0.9, 9, 1.2, 10.0);
Assert.fail("Should have caught that");
} catch (IllegalArgumentException e) {
}
try {
new Empirical(true, true, 20, 0, 1, 0.5, 2, 0.4, 9, 1, 10.0);
Assert.fail("Should have caught that");
} catch (IllegalArgumentException e) {
}
}
}