Skip to content

Commit

Permalink
Update test with uneven string lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Oct 11, 2024
1 parent 487e557 commit f88eb68
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rerun_py/tests/unit/test_utf8.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

import numpy as np

from rerun import datatypes


Expand All @@ -19,8 +20,9 @@ def test_utf8_batch_single() -> None:


def test_utf8_batch_many() -> None:
list_of_strings = ["hello", "world"]
array_of_strings = np.array(["hello", "world"])
# different string length to be sure
list_of_strings = ["hell", "worlds"]
array_of_strings = np.array(["hell", "worlds"])

assert (
datatypes.Utf8Batch(list_of_strings).as_arrow_array() == datatypes.Utf8Batch(array_of_strings).as_arrow_array()
Expand Down

0 comments on commit f88eb68

Please sign in to comment.