Skip to content

Commit 3ff2899

Browse files
committed
remove testset from a test in boundscheck_exec.jl
otherwise, this prints testset status to the consoler when running the base tests
1 parent 84cc901 commit 3ff2899

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

test/boundscheck_exec.jl

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -259,17 +259,15 @@ if bc_opt == bc_default || bc_opt == bc_off
259259
@test !occursin("arrayref(true", typed_40281)
260260
end
261261

262-
@testset "pass inbounds meta to getindex on CartesianIndices (#42115)" begin
263-
@inline getindex_42115(r, i, j) = @inbounds getindex(r, i, j)
264-
265-
R = CartesianIndices((5, 5))
266-
if bc_opt == bc_on
267-
@test_throws BoundsError getindex_42115(R, -1, -1)
268-
@test_throws BoundsError getindex_42115(R, 1, -1)
269-
else
270-
@test getindex_42115(R, -1, -1) == CartesianIndex(-1, -1)
271-
@test getindex_42115(R, 1, -1) == CartesianIndex(1, -1)
272-
end
273-
end
262+
@inline getindex_42115(r, i, j) = @inbounds getindex(r, i, j)
274263

264+
R_42115 = CartesianIndices((5, 5))
265+
if bc_opt == bc_on
266+
@test_throws BoundsError getindex_42115(R_42115, -1, -1)
267+
@test_throws BoundsError getindex_42115(R_42115, 1, -1)
268+
else
269+
@test getindex_42115(R_42115, -1, -1) == CartesianIndex(-1, -1)
270+
@test getindex_42115(R_42115, 1, -1) == CartesianIndex(1, -1)
275271
end
272+
273+
end # module

0 commit comments

Comments
 (0)