RapidFuzz/tests/test_utils.py

29 lines
803 B
Python

from __future__ import annotations
from rapidfuzz import utils_cpp, utils_py
def test_fullProcess():
mixed_strings = [
"Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
"C'est la vie",
"Ça va?",
"Cães danados",
"¬Camarões assados",
"a¬ሴ€耀",
"Á",
]
mixed_strings_proc = [
"lorem ipsum is simply dummy text of the printing and typesetting industry",
"c est la vie",
"ça va",
"cães danados",
"camarões assados",
"a ሴ 耀",
"á",
]
for string, proc_string in zip(mixed_strings, mixed_strings_proc):
assert utils_cpp.default_process(string) == proc_string
assert utils_py.default_process(string) == proc_string