Пример #1
0
def test_solution_1():
    sol = Solution()
    x = ["eads", "asdsadsa", "aresdfsd"]
    result = sol.group_anagrams(x)
    assert result == [["eads"], ["asdsadsa"], ["aresdfsd"]]
Пример #2
0
def test_solution_1():
    sol = Solution()
    x = ["abc", "bca", "cba"]
    result = sol.group_anagrams(x)
    assert result == [["abc", "bca", "cba"]]
Пример #3
0
def test_solution_2():
    sol = Solution()
    x = ["abc", "bca", "cba", "better", "retteb"]
    result = sol.group_anagrams(x)
    assert result == [["abc", "bca", "cba"], ["better", "retteb"]]