"""Tests for `prettyqt` package."""

import pytest

from prettyqt.utils import helpers


def test_string_to_num_array():
    assert helpers.string_to_num_array("1, 3, 5") == [1, 3, 5]
    with pytest.raises(ValueError):
        helpers.string_to_num_array("1, 2, f")
