You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a list of size 0 is passed to either of these validation functions, a ValueError is thrown because the comparison doesn't know how to handle empty list arguments.
Expected behavior
verify_in_list
If the LHL (left-hand list) passed is empty, then it will always be contained in the RHL (right-hand list).
If the RHL is empty, then the LHL will never be contained in it.
The one edge case that needs to be handled is if both lists are empty. In this specific instance, the empty list is always contained in the empty list and should return True.
verify_same_elements
If one list is empty, then the return value should be Falseunless the other list is also empty, in which case True should be returned.
To Reproduce
Pass one or two empty lists to either of these functions.