From 6c3f3e1e976400d1975e69e4a0f13657084a5b60 Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Fri, 17 Jan 2025 15:08:06 -0500 Subject: [PATCH] Update test_utils.py --- cubids/tests/test_utils.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cubids/tests/test_utils.py b/cubids/tests/test_utils.py index 184e1d25..a162053f 100644 --- a/cubids/tests/test_utils.py +++ b/cubids/tests/test_utils.py @@ -142,8 +142,7 @@ def test_format_params(): def compare_group_assignments(list1, list2): - """ - Compare two lists for equality based on group assignments. + """Compare two lists for equality based on group assignments. This function checks if two lists can be considered equal based on their group assignments. The actual values in the lists do not matter, only the group assignments do. Each unique value @@ -169,6 +168,11 @@ def compare_group_assignments(list1, list2): >>> compare_group_assignments(list1, list2) True + >>> list1 = [1, 2, 1, 3, 2] + >>> list2 = ['b', 'd', 'b', 'q', 'd'] + >>> compare_group_assignments(list1, list2) + True + >>> list1 = [1, 2, 1, 3, 2] >>> list2 = ['a', 'b', 'a', 'c', 'd'] >>> compare_group_assignments(list1, list2)