Skip to content

Commit 031ce1c

Browse files
committed
relax === to == in det tests
1 parent 4002014 commit 031ce1c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/det.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
@testset "Determinant" begin
2-
@test det(@SMatrix [1]) === 1
3-
@test logdet(@SMatrix [1]) === 0.0
4-
@test det(@SMatrix [0 1; 1 0]) === -1
2+
@test det(@SMatrix [1]) == 1
3+
@test logdet(@SMatrix [1]) == 0.0
4+
@test det(@SMatrix [0 1; 1 0]) == -1
55
@test logdet(@SMatrix Complex{Float64}[0 1; 1 0]) == log(det(@SMatrix Complex{Float64}[0 1; 1 0]))
66

7-
@test det(@SMatrix [0 1 0; 1 0 0; 0 0 1]) === -1
7+
@test det(@SMatrix [0 1 0; 1 0 0; 0 0 1]) == -1
88
m = randn(Float64, 4,4)
99
@test det(SMatrix{4,4}(m)) det(m)
1010
#triu/tril
11-
@test det(@SMatrix [1 2; 0 3]) === 3
12-
@test det(@SMatrix [1 2 3 4; 0 5 6 7; 0 0 8 9; 0 0 0 10]) === 400.0
11+
@test det(@SMatrix [1 2; 0 3]) == 3
12+
@test det(@SMatrix [1 2 3 4; 0 5 6 7; 0 0 8 9; 0 0 0 10]) == 400.0
1313
@test logdet(@SMatrix [1 2 3 4; 0 5 6 7; 0 0 8 9; 0 0 0 10]) log(400.0)
1414
@test @inferred(det(ones(SMatrix{10,10,Complex{Float64}}))) == 0
1515

0 commit comments

Comments
 (0)