Additional test.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1176809 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2011-09-28 10:10:20 +00:00
parent 5313f6aaae
commit 4471616be7
1 changed files with 7 additions and 0 deletions

View File

@ -1648,6 +1648,13 @@ public final class MathUtilsTest {
} catch (NonMonotonicSequenceException e) {
// Expected
}
try {
MathUtils.checkOrder(new double[] {3, 0, -5.5, -11, -10},
MathUtils.OrderDirection.DECREASING, false);
Assert.fail("an exception should have been thrown");
} catch (NonMonotonicSequenceException e) {
// Expected
}
}
@Test