Skip to content

Commit

Permalink
Workaround #540 by wrapping results with indeterminate shape in vec
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed May 15, 2018
1 parent 9ae1261 commit 09337ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -777,10 +777,10 @@ end
let
A14 = [11 13; 12 14]
R = CartesianIndices(Compat.axes(A14))
@test [a for (a,b) in pairs(IndexLinear(), A14)] == [1,2,3,4]
@test [a for (a,b) in pairs(IndexCartesian(), A14)] == vec(collect(R))
@test [b for (a,b) in pairs(IndexLinear(), A14)] == [11,12,13,14]
@test [b for (a,b) in pairs(IndexCartesian(), A14)] == [11,12,13,14]
@test vec([a for (a,b) in pairs(IndexLinear(), A14)]) == [1,2,3,4]
@test vec([a for (a,b) in pairs(IndexCartesian(), A14)]) == vec(collect(R))
@test vec([b for (a,b) in pairs(IndexLinear(), A14)]) == [11,12,13,14]
@test vec([b for (a,b) in pairs(IndexCartesian(), A14)]) == [11,12,13,14]
end

# Val(x)
Expand Down

0 comments on commit 09337ca

Please sign in to comment.