Skip to content

Commit c6e048b

Browse files
committed
add test for vectors of multi-type tuples
1 parent 1ef7bb5 commit c6e048b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/runtests.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,14 @@ end
186186
rm("test_26_module_in_module.bson")
187187
end
188188

189+
@testset "Arrays of mixed-type tuples" begin
190+
a = [(1, true), (2, false)]
191+
@test roundtrip_equal(a)
192+
@test_logs (:warn, r"Storing structure") BSON.roundtrip(a)
193+
x = BSON.WARN_PADDING[]
194+
BSON.WARN_PADDING[] = false
195+
@test_logs BSON.roundtrip(a)
196+
BSON.WARN_PADDING[] = x
197+
end
198+
189199
end

0 commit comments

Comments
 (0)