Skip to content

Commit d2ac8f6

Browse files
committed
Fix testing setindex! -- make sure we are using the proper dimensionality
1 parent 1b32415 commit d2ac8f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/abstractarray.jl

+4-3
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,10 @@ end
302302
function test_setindex!_internals(::Type{TestAbstractArray})
303303
U = UnimplementedFastArray{Int, 2}()
304304
V = UnimplementedSlowArray{Int, 2}()
305-
@test_throws ErrorException setindex!(U, 1)
306-
@test_throws ErrorException Base.unsafe_setindex!(U, 1)
307-
@test_throws ErrorException Base.unsafe_setindex!(U, 1, 1)
305+
@test_throws ErrorException setindex!(U, 0, 1)
306+
@test_throws ErrorException Base.unsafe_setindex!(U, 0, 1)
307+
@test_throws ErrorException setindex!(V, 0, 1, 1)
308+
@test_throws ErrorException Base.unsafe_setindex!(V, 0, 1, 1)
308309
end
309310

310311
function test_get(::Type{TestAbstractArray})

0 commit comments

Comments
 (0)