Skip to content

Commit e5ec77e

Browse files
committed
Make SVD tests more precise
1 parent c3cace2 commit e5ec77e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/svd.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
using StaticArrays, Base.Test
22

3-
@testset "SVD" begin
3+
@testset "SVD factorization" begin
44
@testset "svd" begin
5-
@testinf svdvals(@SMatrix [2 0; 0 0]) [2, 0]
5+
@testinf svdvals(@SMatrix [2 0; 0 0])::StaticVector [2, 0]
66
@testinf svdvals((@SMatrix [2 -2; 1 1]) / sqrt(2)) [2, 1]
77

88
m3 = @SMatrix Float64[3 9 4; 6 6 2; 3 7 9]
99
@testinf svdvals(m3) svdvals(Matrix(m3))
1010

11-
@testinf svd(m3)[1] svd(Matrix(m3))[1]
12-
@testinf svd(m3)[2] svd(Matrix(m3))[2]
13-
@testinf svd(m3)[3] svd(Matrix(m3))[3]
11+
@testinf svd(m3)[1]::StaticMatrix svd(Matrix(m3))[1]
12+
@testinf svd(m3)[2]::StaticVector svd(Matrix(m3))[2]
13+
@testinf svd(m3)[3]::StaticMatrix svd(Matrix(m3))[3]
1414
end
1515

1616
@testset "svdfact" begin

0 commit comments

Comments
 (0)