Skip to content

Commit

Permalink
Merge pull request #2 from eulerkochy/master
Browse files Browse the repository at this point in the history
Tests added
  • Loading branch information
eulerkochy committed Feb 27, 2019
2 parents 68d0edf + 8bb160c commit 997a4ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions stdlib/LinearAlgebra/test/dense.jl
Expand Up @@ -83,6 +83,15 @@ bimg = randn(n,2)/2
end
end
end # for eltyb

@testset "Test diagm for vectors" begin
@test diagm(zeros(50)) == diagm(0 => zeros(50))
@test diagm(ones(50)) == diagm(0 => ones(50))
for i = 1:50
v = randn(500)
@test diagm(v) == diagm(0 => v)
end
end

@testset "Test pinv (rtol, atol)" begin
M = [1 0 0; 0 1 0; 0 0 0]
Expand Down

0 comments on commit 997a4ba

Please sign in to comment.