From d01a599de19c50c84413a88d741bcfe96d063157 Mon Sep 17 00:00:00 2001 From: "William S. Moses" Date: Fri, 29 Nov 2024 14:40:53 -0500 Subject: [PATCH] Sparse array debugging --- test/abstractarray.jl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/abstractarray.jl b/test/abstractarray.jl index 0aab16b69d67d..e4cccff417f45 100644 --- a/test/abstractarray.jl +++ b/test/abstractarray.jl @@ -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]