Skip to content

Commit 15742b9

Browse files
authored
Fix tests from #868 (#871)
1 parent 52fc102 commit 15742b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/indexing.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ using StaticArrays, Test
144144
@test (mm = MMatrix{2,2,Int}(undef); mm[:,SOneTo(1)] = sm[:,SOneTo(1)]; (@inferred getindex(mm, :, SOneTo(1)))::MMatrix == @MMatrix [1;2])
145145

146146
# #866
147-
@test_throws DimensionMismatch setindex!(MMatrix(SA[1 2; 3 4], SA[3,4], 1, SA[1,2,3]))
148-
@test_throws DimensionMismatch setindex!(MMatrix(SA[1 2; 3 4], [3,4], 1, SA[1,2,3]))
147+
@test_throws DimensionMismatch setindex!(MMatrix(SA[1 2; 3 4]), SA[3,4], 1, SA[1,2,3])
148+
@test_throws DimensionMismatch setindex!(MMatrix(SA[1 2; 3 4]), [3,4], 1, SA[1,2,3])
149149
end
150150

151151
@testset "3D scalar indexing" begin

0 commit comments

Comments
 (0)