示例#1
0
def test_uncommon_all_same():
    my_cities = ['Rome', 'Paris', 'Madrid', 'Chicago', 'Seville', 'Berlin']
    other_cities = ['Rome', 'Paris', 'Madrid', 'Chicago', 'Seville', 'Berlin']
    assert uncommon_cities(my_cities, other_cities) == 0
示例#2
0
def test_uncommon_all_same():
    my_cities = ["Rome", "Paris", "Madrid", "Chicago", "Seville", "Berlin"]
    other_cities = ["Rome", "Paris", "Madrid", "Chicago", "Seville", "Berlin"]
    assert uncommon_cities(my_cities, other_cities) == 0
示例#3
0
def test_uncommon_part_overlap():
    my_cities = ['Rome', 'Paris', 'Madrid', 'Chicago', 'Seville', 'Berlin']
    other_cities = ['Paris', 'Boston', 'Sydney', 'Madrid', 'Moscow', 'Lima']
    assert uncommon_cities(my_cities, other_cities) == 8
示例#4
0
def test_uncommon_part_overlap():
    my_cities = ["Rome", "Paris", "Madrid", "Chicago", "Seville", "Berlin"]
    other_cities = ["Paris", "Boston", "Sydney", "Madrid", "Moscow", "Lima"]
    assert uncommon_cities(my_cities, other_cities) == 8