Skip to content

Commit 063e352

Browse files
author
Pietro Vertechi
committed
test fallback constructor
1 parent 8f22b25 commit 063e352

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ collect_structarray_rec(t) = collect_structarray(t, initializer = initializer)
274274
v = [(a = 1, b = 2), (a = 1.2, b = 3)]
275275
@test collect_structarray_rec(v) == StructArray((a = [1, 1.2], b = Int[2, 3]))
276276
@test typeof(collect_structarray_rec(v)) == typeof(StructArray((a = Real[1, 1.2], b = Int[2, 3])))
277+
@test StructArray(v[i] for i in eachindex(v)) == StructArray((a = [1, 1.2], b = Int[2, 3]))
277278

278279
s = StructArray(a = [1, 2], b = [3, 4])
279280
@test collect_structarray(LazyRow(s, i) for i in eachindex(s)) == s

0 commit comments

Comments
 (0)