Skip to content

Commit 286b6b4

Browse files
authored
Adapt to hvcat error type in julia (#1902)
1 parent 4807c5e commit 286b6b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/generic/Matrix-test.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@ end
216216
@test_throws MethodError T[1;;;]
217217
end
218218

219-
@test_throws ArgumentError T[1; 2 3]
219+
if VERSION < v"1.12.0-DEV.1612"
220+
@test_throws ArgumentError T[1; 2 3]
221+
else
222+
@test_throws DimensionMismatch T[1; 2 3]
223+
end
220224
end
221225

222226
arr = [1 2; 3 4]

0 commit comments

Comments
 (0)