Skip to content

Commit

Permalink
chore: add a few more unit tests to det
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Feb 28, 2023
1 parent 00cee87 commit 0e777bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit-tests/function/matrix/det.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ describe('det', function () {
it('should return 1 for an empty array or matrix', function () {
assert.deepStrictEqual(det([]), 1)
assert.deepStrictEqual(det([[]]), 1)
assert.deepStrictEqual(det([[], []]), 1)

assert.deepStrictEqual(det(math.matrix([])), 1)
assert.deepStrictEqual(det(math.matrix([[]])), 1)
assert.deepStrictEqual(det(math.matrix([[], []])), 1)
})

it('should not change the value of the initial matrix', function () {
Expand Down

0 comments on commit 0e777bf

Please sign in to comment.