Exemple #1
0
 def test_mismatch_input_lengths(self):
     with pytest.raises(ValueError):
         group_anagrams(["eat", "done"], ["aet"])
Exemple #2
0
 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]
Exemple #3
0
 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]
Exemple #4
0
 def test_empty_list(self):
     assert group_anagrams([], []) == [[]]