Skip to content

Commit

Permalink
Adapt to hvcat error type in julia (#1902)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Nov 12, 2024
1 parent 4807c5e commit 286b6b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/generic/Matrix-test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,11 @@ end
@test_throws MethodError T[1;;;]
end

@test_throws ArgumentError T[1; 2 3]
if VERSION < v"1.12.0-DEV.1612"
@test_throws ArgumentError T[1; 2 3]
else
@test_throws DimensionMismatch T[1; 2 3]
end
end

arr = [1 2; 3 4]
Expand Down

0 comments on commit 286b6b4

Please sign in to comment.