Skip to content

Commit bc7f980

Browse files
committed
Test adjoint on non-square matrices.
1 parent fe88247 commit bc7f980

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/MatrixTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,15 @@ public function testAdjoint()
372372
static::assertEquals(4, $adjoint->get(2, 2));
373373
}
374374

375+
public function testRectangularAdjoint()
376+
{
377+
$matrix = $this->buildMatrix();
378+
379+
static::expectException(MatrixException::class);
380+
381+
$matrix->adjoint();
382+
}
383+
375384
public function testConcatenateBottom()
376385
{
377386
$matrixA = new Matrix([[1, 2, 3]]);

0 commit comments

Comments
 (0)