"""Réplique les cas de `normalizeText` de `tech-step-matcher.test.ts`
(`apps/api/test/recipe-matching/tech-step-matcher.test.ts`) contre le port
Python — les deux fonctions doivent rester bit-pour-bit équivalentes."""

from intent_service.text_normalization import normalize_text


def test_lowercases_and_strips_accents():
    assert normalize_text("Déglacer AU FOUR") == "deglacer au four"


def test_strips_a_variety_of_diacritics_including_cedilla():
    assert normalize_text("Façon Œuf à l'Étouffée") == "facon œuf a l'etouffee"


def test_leaves_already_plain_text_unchanged_aside_from_casing():
    assert normalize_text("Mix everything") == "mix everything"


def test_returns_an_empty_string_for_an_empty_input():
    assert normalize_text("") == ""
