Skip to content

Commit 9ccda4e

Browse files
kshyattandyferris
authored andcommitted
Couple missing branches for sqrtm and solve (#227)
1 parent 39eccd8 commit 9ccda4e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/solve.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,8 @@ end
5454
@test SX isa StaticMatrix # test not falling back to Base
5555
@test SX X
5656
@test eltype(SX) == eltype(X)
57+
58+
v_bad = @SVector ones(n+1)
59+
@test_throws DimensionMismatch A\v_bad
5760
end
5861
end

test/sqrtm.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
@test sqrtm(@SMatrix [5 2; -2 1])::SMatrix sqrtm([5 2; -2 1])
44
@test sqrtm(@SMatrix [4 2; -2 1])::SMatrix sqrtm([4 2; -2 1])
55
@test sqrtm(@SMatrix [4 2; 2 1])::SMatrix sqrtm([4 2; 2 1])
6+
@test sqrtm(@SMatrix [0 0; 0 0])::SMatrix sqrtm([0 0; 0 0])
67
@test sqrtm(@SMatrix [1 2 0; 2 1 0; 0 0 1])::SizedArray{Tuple{3,3}} sqrtm([1 2 0; 2 1 0; 0 0 1])
78
end

0 commit comments

Comments
 (0)