contacts = [
{'nom': 'Alice Martin', 'email': 'a@x.com', 'telephone': '1', 'ville': 'Paris'},
{'nom': 'Bob Dupont', 'email': 'b@x.com', 'telephone': '2', 'ville': 'Lyon'},
{'nom': 'alice Durand', 'email': 'c@x.com', 'telephone': '3', 'ville': 'Nice'},
]
result = recherche_floue(contacts, 'alice')
assert len(result) == 2
assert result[0]['nom'] == 'Alice Martin'
contacts = [{'nom': 'Bob', 'email': 'b@x.com', 'telephone': '2', 'ville': 'Lyon'}]
assert recherche_floue(contacts, 'zzzz') == []
+ 0 tests cachés