verify_same_elements
doesn't throw a ValueError
if either list 1 or list 2 have a length of 0 (not both)
#50
Labels
bug
Something isn't working
Describe the bug
At https://github.com/angelolab/alpineer/blob/main/src/alpineer/misc_utils.py#L176-L177 (ex.
list_one_cast = []
andlist_two_cast = [1, 2, 3]
), this statement returnsFalse
, which is incorrect, because it won't correctly inform the user that the input was invalid.Expected behavior
Instead, a
ValueError
should be raised with an informative message.The text was updated successfully, but these errors were encountered: