Skip to content

Commit 0e777bf

Browse files
committed
chore: add a few more unit tests to det
1 parent 00cee87 commit 0e777bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unit-tests/function/matrix/det.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,11 @@ describe('det', function () {
134134
it('should return 1 for an empty array or matrix', function () {
135135
assert.deepStrictEqual(det([]), 1)
136136
assert.deepStrictEqual(det([[]]), 1)
137+
assert.deepStrictEqual(det([[], []]), 1)
137138

138139
assert.deepStrictEqual(det(math.matrix([])), 1)
139140
assert.deepStrictEqual(det(math.matrix([[]])), 1)
141+
assert.deepStrictEqual(det(math.matrix([[], []])), 1)
140142
})
141143

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

0 commit comments

Comments
 (0)