Skip to content

Commit 0827820

Browse files
authored
Fix broken tests causing failures in test/sparse/higherorderfns (#20906)
multiple related PR's were merged which changed the behavior here, without re-running CI
1 parent 73e20a3 commit 0827820

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

test/sparse/higherorderfns.jl

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -427,18 +427,14 @@ end
427427
S = SymTridiagonal(rand(N), rand(N - 1))
428428
# why some of the tests below are broken:
429429
# Diagonal setindex! allows setting off-diagonal entries to zero. Subtypes of
430-
# AbstractTriangular allow analogs. But Bidiagonal, Tridiagonal, and SymTridiagonal
431-
# do not, which seems like a bug. setindex! behavior like that for Diagonal and
432-
# subtypes of AbstractTriangular is necessary for Bidiagonal, Tridiagonal, and
433-
# SymTridiagonal to be targets of the AbstractArray broadcast! methods, hence
434-
# the test failures below.
430+
# AbstractTriangular allow analogs.
435431
@test broadcast!(sin, copy(D), D) == Diagonal(sin.(D))
436-
@test_broken broadcast!(sin, copy(B), B) == Bidiagonal(sin.(B), true)
437-
@test_broken broadcast!(sin, copy(T), T) == Tridiagonal(sin.(T))
432+
@test broadcast!(sin, copy(B), B) == Bidiagonal(sin.(B), true)
433+
@test broadcast!(sin, copy(T), T) == Tridiagonal(sin.(T))
438434
@test_broken broadcast!(sin, copy(S), S) == SymTridiagonal(sin.(S))
439435
@test broadcast!(*, copy(D), D, A) == Diagonal(broadcast(*, D, A))
440-
@test_broken broadcast!(*, copy(B), B, A) == Bidiagonal(broadcast(*, B, A), true)
441-
@test_broken broadcast!(*, copy(T), T, A) == Tridiagonal(broadcast(*, T, A))
436+
@test broadcast!(*, copy(B), B, A) == Bidiagonal(broadcast(*, B, A), true)
437+
@test broadcast!(*, copy(T), T, A) == Tridiagonal(broadcast(*, T, A))
442438
@test_broken broadcast!(*, copy(S), T, sA) == SymTridiagonal(broadcast(*, T, sA))
443439
end
444440

0 commit comments

Comments
 (0)