diff --git a/src/rds2py/s4vectors.py b/src/rds2py/s4vectors.py index d6cf405..753e845 100644 --- a/src/rds2py/s4vectors.py +++ b/src/rds2py/s4vectors.py @@ -6,7 +6,7 @@ def parse_rle(x: dict) -> list: - """Parse an S4Vector RLE class as list + """Parse an S4Vector RLE class as list. Args: x: diff --git a/tests/test_atomics.py b/tests/test_atomics.py index 06e175b..0df8d34 100644 --- a/tests/test_atomics.py +++ b/tests/test_atomics.py @@ -10,13 +10,16 @@ ## With attributes + def test_read_atomic_attrs(): obj = read_rds("tests/data/atomic_attr.rds") assert obj is not None + ## Booleans + def test_read_atomic_logical(): arr = read_rds("tests/data/atomic_logical.rds") @@ -32,8 +35,10 @@ def test_read_atomic_logical_na(): assert isinstance(arr, BooleanList) assert len(arr) > 0 + ## Doubles/Floats + def test_read_atomic_double(): obj = read_rds("tests/data/atomic_double.rds") @@ -44,6 +49,7 @@ def test_read_atomic_double(): ## Ints + def test_read_atomic_ints(): arr = read_rds("tests/data/atomic_ints.rds") @@ -64,6 +70,7 @@ def test_read_atomic_ints_with_names(): ## Strings + def test_read_atomic_chars(): arr = read_rds("tests/data/atomic_chars.rds")