from src.fmatch.saas.operators.company_to_domain import company_to_domain


def test_guess_domain():
    v = company_to_domain("Acme Corporation")["value"]
    assert isinstance(v["domain"], str)
    assert v["domain"].endswith((".com", ".org", ".co.uk", ".edu"))
    assert v["confidence"] in {"low", "medium", "high"}

