Skip to content

Commit

Permalink
Disable a Cartesian- and LinearIndices test broken Julia 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Apr 20, 2018
1 parent 33f051a commit 5de8cd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,11 @@ let c = CartesianIndices(1:3, 1:2), l = LinearIndices(1:3, 1:2)
@test l == collect(l) == reshape(1:6, 3, 2)
@test c[1:6] == vec(c)
@test l[1:6] == vec(l)
@test l == l[c] == map(i -> l[i], c)
# TODO the following test fails on current Julia master (since 0.7.0-DEV.4742), and
# it's not clear yet whether it should work or not. See
# https://github.com/JuliaLang/julia/pull/26682#issuecomment-379762632 and the
# discussion following it
#@test l == l[c] == map(i -> l[i], c)
@test l[vec(c)] == collect(1:6)
@test CartesianIndex(1, 1) in CartesianIndices((3, 4))
end
Expand Down

0 comments on commit 5de8cd0

Please sign in to comment.