Skip to content

Commit 3d03196

Browse files
committed
Add test for empty tuples too
1 parent 2ba2532 commit 3d03196

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_vlarray.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,13 @@ def test_vlarray_empty_list_roundtrip():
262262
assert list(vlarray) == values
263263

264264

265+
def test_vlarray_empty_tuple_roundtrip():
266+
values = [(), {"a": ()}, [(), ("nested",)], None, ("tuple", ()), {"rows": [[], ()]}]
267+
vlarray = blosc2.VLArray()
268+
vlarray.extend(values)
269+
assert list(vlarray) == values
270+
271+
265272
def test_vlarray_insert_delete_errors():
266273
vlarray = blosc2.VLArray()
267274
vlarray.append("value")

0 commit comments

Comments
 (0)