Skip to content

Commit

Permalink
Update test_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Jan 17, 2025
1 parent 45bcc76 commit 6c3f3e1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cubids/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 6c3f3e1

Please sign in to comment.