Skip to content

Commit

Permalink
Add inference tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Jul 25, 2024
1 parent dca91a4 commit 0f6814f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/test/bidiag.jl
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ end

s = SizedArrays.SizedArray{(2,2)}([1 2; 3 4])
B = Bidiagonal(fill(s,4), fill(s,3), :U)
@test B[2,1] isa typeof(s)
@test @inferred(B[2,1]) isa typeof(s)
@test all(iszero, B[2,1])
end
end
Expand Down
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/test/diagonal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ end

s = SizedArrays.SizedArray{(2,2)}([1 2; 3 4])
D = Diagonal(fill(s,3))
@test D[1,2] isa typeof(s)
@test @inferred(D[1,2]) isa typeof(s)
@test all(iszero, D[1,2])
end
end
Expand Down

0 comments on commit 0f6814f

Please sign in to comment.