Skip to content

Commit db38cda

Browse files
committed
Only trigger new tests on VERSION >= 1.5
1 parent b3db1a7 commit db38cda

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

test/SizedArray.jl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,15 @@
9898
# pointer
9999
@testset "pointer" begin
100100
@test pointer(sa) === pointer(sa.data)
101-
A = MMatrix{32,3,Float64}(undef);
102-
av1 = view(A, 1, :);
103-
av2 = view(A, :, 1);
104-
@test pointer(A) == pointer(av1) == pointer(av2)
105-
@test pointer(A, LinearIndices(A)[1,2]) == pointer(av1, 2)
106-
@test pointer(A, LinearIndices(A)[2,1]) == pointer(av2, 2)
107-
@test pointer(A, LinearIndices(A)[4,3]) == pointer(view(A, :, 3), 4) == pointer(view(A, 4, :), 3)
101+
if VERSION v"1.5"
102+
A = MMatrix{32,3,Float64}(undef);
103+
av1 = view(A, 1, :);
104+
av2 = view(A, :, 1);
105+
@test pointer(A) == pointer(av1) == pointer(av2)
106+
@test pointer(A, LinearIndices(A)[1,2]) == pointer(av1, 2)
107+
@test pointer(A, LinearIndices(A)[2,1]) == pointer(av2, 2)
108+
@test pointer(A, LinearIndices(A)[4,3]) == pointer(view(A, :, 3), 4) == pointer(view(A, 4, :), 3)
109+
end
108110
end
109111

110112
@testset "vec" begin

0 commit comments

Comments
 (0)