From f88eb689c14f3e00bf827461dd5914ba9f46cd77 Mon Sep 17 00:00:00 2001 From: Antoine Beyeler Date: Fri, 11 Oct 2024 15:17:47 +0200 Subject: [PATCH] Update test with uneven string lengths --- rerun_py/tests/unit/test_utf8.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rerun_py/tests/unit/test_utf8.py b/rerun_py/tests/unit/test_utf8.py index 6844eb4fb9c2..6785bd485541 100644 --- a/rerun_py/tests/unit/test_utf8.py +++ b/rerun_py/tests/unit/test_utf8.py @@ -1,6 +1,7 @@ from __future__ import annotations import numpy as np + from rerun import datatypes @@ -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()