Skip to content

Commit e40a5f3

Browse files
martinholtersararslan
authored andcommitted
Workaround #540 by wrapping results with indeterminate shape in vec (#544)
1 parent 9ae1261 commit e40a5f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/runtests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,10 @@ end
777777
let
778778
A14 = [11 13; 12 14]
779779
R = CartesianIndices(Compat.axes(A14))
780-
@test [a for (a,b) in pairs(IndexLinear(), A14)] == [1,2,3,4]
781-
@test [a for (a,b) in pairs(IndexCartesian(), A14)] == vec(collect(R))
782-
@test [b for (a,b) in pairs(IndexLinear(), A14)] == [11,12,13,14]
783-
@test [b for (a,b) in pairs(IndexCartesian(), A14)] == [11,12,13,14]
780+
@test vec([a for (a,b) in pairs(IndexLinear(), A14)]) == [1,2,3,4]
781+
@test vec([a for (a,b) in pairs(IndexCartesian(), A14)]) == vec(collect(R))
782+
@test vec([b for (a,b) in pairs(IndexLinear(), A14)]) == [11,12,13,14]
783+
@test vec([b for (a,b) in pairs(IndexCartesian(), A14)]) == [11,12,13,14]
784784
end
785785

786786
# Val(x)

0 commit comments

Comments
 (0)