Skip to content

Commit

Permalink
Skip const-fold test in Julia 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Dec 22, 2019
1 parent 3745b09 commit 62b8b88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/indexing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,27 +230,27 @@ using StaticArrays, Test
x[2:end]
end
@test SVector_UnitRange() === SA[2, 3]
VERSION v"1.1" && @test_const_fold SVector_UnitRange()
VERSION v"1.2" && @test_const_fold SVector_UnitRange()

function SVector_StepRange()
x = SA[1, 2, 3, 4]
x[1:2:end]
end
@test SVector_StepRange() === SA[1, 3]
VERSION v"1.1" && @test_const_fold SVector_StepRange()
VERSION v"1.2" && @test_const_fold SVector_StepRange()

function SMatrix_UnitRange_UnitRange()
x = SA[1 2 3; 4 5 6]
x[1:2, 2:end]
end
@test SMatrix_UnitRange_UnitRange() === SA[2 3; 5 6]
VERSION v"1.1" && @test_const_fold SMatrix_UnitRange_UnitRange()
VERSION v"1.2" && @test_const_fold SMatrix_UnitRange_UnitRange()

function SMatrix_StepRange_StepRange()
x = SA[1 2 3; 4 5 6]
x[1:1:2, 1:2:end]
end
@test SMatrix_StepRange_StepRange() === SA[1 3; 4 6]
VERSION v"1.1" && @test_const_fold SMatrix_StepRange_StepRange()
VERSION v"1.2" && @test_const_fold SMatrix_StepRange_StepRange()
end
end

0 comments on commit 62b8b88

Please sign in to comment.