def test_mismatch_input_lengths(self): with pytest.raises(ValueError): group_anagrams(["eat", "done"], ["aet"])
def test_one_word_in_list(self, one_word_in_list): assert group_anagrams(one_word_in_list[0], one_word_in_list[1]) == one_word_in_list[2]
def test_multiple_base_single_words(self, multiple_base_single_words): assert group_anagrams( multiple_base_single_words[0], multiple_base_single_words[1]) == multiple_base_single_words[2]
def test_empty_list(self): assert group_anagrams([], []) == [[]]