Skip to content

Commit

Permalink
Add assert in unit test for empty SimpleSeq that we can call to_seq a…
Browse files Browse the repository at this point in the history
…nd get a Sequence of length 0
  • Loading branch information
NickleDave committed Oct 12, 2024
1 parent e1d8943 commit 2012e4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_formats/test_seq/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def test_empty_annotations(empty_csv_file_path):
assert np.array_equal(
getattr(simple, attr), np.array([])
)
seq = simple.to_seq()
assert len(seq) == 0


def test_columns_map_only_maps_columns(jourjine_et_al_2023_csv_path):
Expand Down

0 comments on commit 2012e4a

Please sign in to comment.