Beispiel #1
0
def test_nickname():
    assert count_unique_names("Deborah", "Egli", "Debbie", "Egli",
                              "Debbie Egli") == 1
Beispiel #2
0
def test_different_card_to_others():
    assert count_unique_names("Michele", "Egli", "Michele", "Egli",
                              "Deborah Egli") == 2
Beispiel #3
0
def test_all_different():
    assert count_unique_names("Michele", "Egli", "dave", "Egli",
                              "Deborah Egli") == 3
Beispiel #4
0
def test_used_middle_name():
    assert count_unique_names("Michele", "Egli", "Deborah", "Egli",
                              "Deborah Michele Egli") == 1
Beispiel #5
0
def test_different_bill_to_others():
    assert count_unique_names("Deborah", "Egli", "Michele", "Egli",
                              "Michele Egli") == 2
Beispiel #6
0
def test_reorder_used_middle_name():
    assert count_unique_names("Deborah", "Egli", "Michelle", "Egli",
                              " Egli Deborah Michelle") == 1
Beispiel #7
0
def test_reorder_typo():
    assert count_unique_names("Debarah", "Elli", "Egli", "Deborah",
                              "Deborah Egli") == 1
Beispiel #8
0
def test_different_typos():
    assert count_unique_names("Deborah", "Egki", "Deborah", "Eglu",
                              "Deborah Egli") == 1
Beispiel #9
0
def test_unused_middle_name():
    assert count_unique_names("Deborah S", "Egli", "Deborah", "Egli",
                              "Egli Deborah") == 1
Beispiel #10
0
def test_basic_name():
    assert count_unique_names("Deborah", "Egli", "Deborah", "Egli",
                              "Deborah Egli") == 1
Beispiel #11
0
def test_typo_nickname_and_no_nickname():
    assert count_unique_names("Debarah", "Egli", "Debbie", "Egli",
                              "Deborah Egli") == 1
Beispiel #12
0
def test_letter_swap_typo():
    assert count_unique_names("Deobrah", "Egli", "Deborah", "Egli",
                              "Deborah Egli") == 1
Beispiel #13
0
def test_two_letter_typo():
    assert count_unique_names("Deborah", "Engi", "Deborah", "Egli",
                              "Deborah Egli") == 1
Beispiel #14
0
def test_typo():
    assert count_unique_names("Deborah", "Egni", "Deborah", "Egli",
                              "Deborah Egli") == 1