Skip to content

Commit 3322d90

Browse files
committed
improved test coverage
1 parent e2bacc9 commit 3322d90

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/org/cicirello/math/la/LinearAlgebraTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,13 @@ public void testJacobi() {
621621
);
622622
}
623623

624+
@Test
625+
public void testJacobiTooManyIterations() {
626+
double[][] A = getSymmetric(5);
627+
JacobiDiagonalization jd = new JacobiDiagonalization(A);
628+
assertFalse(jd.compute(1));
629+
}
630+
624631
@Test
625632
public void testJacobiInt() {
626633
for (int n = 1; n <= 5; n++) {

0 commit comments

Comments
 (0)