Skip to content

Commit ea064f7

Browse files
committed
Add inference tests
1 parent 149825c commit ea064f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/LinearAlgebra/test/bidiag.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ end
846846

847847
s = SizedArrays.SizedArray{(2,2)}([1 2; 3 4])
848848
B = Bidiagonal(fill(s,4), fill(s,3), :U)
849-
@test B[2,1] isa typeof(s)
849+
@test @inferred(B[2,1]) isa typeof(s)
850850
@test all(iszero, B[2,1])
851851
end
852852
end

stdlib/LinearAlgebra/test/diagonal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ end
822822

823823
s = SizedArrays.SizedArray{(2,2)}([1 2; 3 4])
824824
D = Diagonal(fill(s,3))
825-
@test D[1,2] isa typeof(s)
825+
@test @inferred(D[1,2]) isa typeof(s)
826826
@test all(iszero, D[1,2])
827827
end
828828
end

0 commit comments

Comments
 (0)