Skip to content

Commit 0c06ae1

Browse files
KristofferCKristofferC
authored andcommitted
unexport wrap
1 parent 410cac7 commit 0c06ae1

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

base/exports.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ export
460460
vcat,
461461
vec,
462462
view,
463-
wrap,
464463
zeros,
465464

466465
# search, find, match and related functions

test/arrayops.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3190,20 +3190,20 @@ end
31903190
@testset "Wrapping Memory into Arrays" begin
31913191
mem = Memory{Int}(undef, 10) .= 1
31923192
memref = MemoryRef(mem)
3193-
@test_throws DimensionMismatch wrap(Array, mem, (10, 10))
3194-
@test wrap(Array, mem, (5,)) == ones(Int, 5)
3195-
@test wrap(Array, mem, 2) == ones(Int, 2)
3196-
@test wrap(Array, memref, 10) == ones(Int, 10)
3197-
@test wrap(Array, memref, (2,2,2)) == ones(Int,2,2,2)
3198-
@test wrap(Array, mem, (5, 2)) == ones(Int, 5, 2)
3193+
@test_throws DimensionMismatch Base.wrap(Array, mem, (10, 10))
3194+
@test Base.wrap(Array, mem, (5,)) == ones(Int, 5)
3195+
@test Base.wrap(Array, mem, 2) == ones(Int, 2)
3196+
@test Base.wrap(Array, memref, 10) == ones(Int, 10)
3197+
@test Base.wrap(Array, memref, (2,2,2)) == ones(Int,2,2,2)
3198+
@test Base.wrap(Array, mem, (5, 2)) == ones(Int, 5, 2)
31993199

32003200
memref2 = MemoryRef(mem, 3)
3201-
@test wrap(Array, memref2, (5,)) == ones(Int, 5)
3202-
@test wrap(Array, memref2, 2) == ones(Int, 2)
3203-
@test wrap(Array, memref2, (2,2,2)) == ones(Int,2,2,2)
3204-
@test wrap(Array, memref2, (3, 2)) == ones(Int, 3, 2)
3205-
@test_throws DimensionMismatch wrap(Array, memref2, 9)
3206-
@test_throws DimensionMismatch wrap(Array, memref2, 10)
3201+
@test Base.wrap(Array, memref2, (5,)) == ones(Int, 5)
3202+
@test Base.wrap(Array, memref2, 2) == ones(Int, 2)
3203+
@test Base.wrap(Array, memref2, (2,2,2)) == ones(Int,2,2,2)
3204+
@test Base.wrap(Array, memref2, (3, 2)) == ones(Int, 3, 2)
3205+
@test_throws DimensionMismatch Base.wrap(Array, memref2, 9)
3206+
@test_throws DimensionMismatch Base.wrap(Array, memref2, 10)
32073207
end
32083208

32093209
@testset "Memory size" begin

0 commit comments

Comments
 (0)