Skip to content

Commit

Permalink
Sparse array debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Nov 29, 2024
1 parent 0fd4c3c commit d01a599
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,14 @@ end
t = (1, 2)
@test [t...; 3 4] == [1 2; 3 4]
@test [0 t...; t... 0] == [0 1 2; 1 2 0]
@test_throws DimensionMismatch [t...; 3 4 5]
try
[t...; 3 4 5]
catch e
Base.printstyled("ERROR: "; color=:red, bold=true)
Base.showerror(stdout, e)
Base.show_backtrace(stdout, Base.catch_backtrace())
end
@test_throws ArgumentError [t...; 3 4 5]

@test Int[t...; 3 4] == [1 2; 3 4]
@test Int[0 t...; t... 0] == [0 1 2; 1 2 0]
Expand Down

0 comments on commit d01a599

Please sign in to comment.