From 0b783b734b51daa5ec4dfe62c5ac4bf701bf0a09 Mon Sep 17 00:00:00 2001 From: Lars Reimann Date: Tue, 14 Jan 2025 13:01:28 +0100 Subject: [PATCH] test: cover missed branches --- .../tabular/containers/_column/test_get_distinct_values.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/safeds/data/tabular/containers/_column/test_get_distinct_values.py b/tests/safeds/data/tabular/containers/_column/test_get_distinct_values.py index 0cf55d24e..09e913fe8 100644 --- a/tests/safeds/data/tabular/containers/_column/test_get_distinct_values.py +++ b/tests/safeds/data/tabular/containers/_column/test_get_distinct_values.py @@ -18,6 +18,8 @@ ([1, 2, 1], True, [1, 2]), ([1, 2, 3, None], True, [1, 2, 3]), ([1, 2, 3, None], False, [1, 2, 3, None]), + ([None], True, []), + ([None], False, [None]), ], ids=[ "empty", @@ -25,6 +27,8 @@ "some duplicate", "with missing values (ignored)", "with missing values (not ignored)", + "only missing values (ignored)", + "only missing values (not ignored)", ], ) def test_should_get_distinct_values(values: list[Any], ignore_missing_values: bool, expected: list[Any]) -> None: