We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 627a1c4 commit 1115743Copy full SHA for 1115743
test/triangular.jl
@@ -941,7 +941,10 @@ end
941
if U isa UnitUpperTriangular
942
@test_throws ArgumentError LinearAlgebra.fillband!(U, 2, 0, 1)
943
end
944
- @test iszero(U)
+ # check that the error paths do not mutate the array
945
+ if U isa UpperTriangular
946
+ @test iszero(U)
947
+ end
948
949
LinearAlgebra.fillband!(U, 1, 0, 1)
950
@test all(==(1), diagview(U,0))
@@ -971,7 +974,10 @@ end
971
974
if L isa UnitLowerTriangular
972
975
@test_throws ArgumentError LinearAlgebra.fillband!(L, 2, -1, 0)
973
976
- @test iszero(L)
977
978
+ if L isa LowerTriangular
979
+ @test iszero(L)
980
981
982
LinearAlgebra.fillband!(L, 1, -1, 0)
983
@test all(==(1), diagview(L,0))
0 commit comments