Skip to content

Commit b0f70cd

Browse files
tomwhitemergify[bot]
authored andcommitted
Add a test to check strings have not been truncated after concat_zarrs
1 parent a474ec6 commit b0f70cd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

sgkit/tests/io/vcf/test_vcf_reader.py

+13
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,19 @@ def test_vcf_to_zarr__parallel_with_fields(shared_datadir, tmp_path):
827827
variants=slice((0, 10001661), (0, 10001670))
828828
)
829829

830+
# check strings have not been truncated after concat_zarrs
831+
assert_array_equal(
832+
ds["variant_allele"],
833+
np.array(
834+
[
835+
["T", "C", "<NON_REF>", ""],
836+
["T", "<NON_REF>", "", ""],
837+
["T", "G", "<NON_REF>", ""],
838+
],
839+
dtype="O",
840+
),
841+
)
842+
830843
# convert floats to ints to check nan type
831844
fill = FLOAT32_FILL
832845
assert_allclose(

0 commit comments

Comments
 (0)