예제 #1
0
def test_string():
    assert anagrams.of("") == ""
예제 #2
0
def test_four_letters():
    assert len(anagrams.of("ABCD")) == 24
예제 #3
0
def test_two_letters():
    assert anagrams.of("AB") == ["AB", "BA"]
예제 #4
0
def test_three_letters():
    assert anagrams.of("ABC") == ["ABC", "ACB", "BAC", "BCA", "CAB", "CBA"]
예제 #5
0
def test_one_letter():
    assert anagrams.of("A") == "A"