# test_integration_simple.py - Save this in src/fmatch/
import pandas as pd
import logging

# Direct import since we're in the same directory
from engine import preprocess, MatchConfig

# Enable logging
logging.basicConfig(level=logging.INFO)

# Test data
df = pd.DataFrame({
    'company_name': ['Acme Inc', 'TechCorp', 'DataCo'],
    'email': ['john@gmail.com', 'info@techcorp.com', 'contact@yahoo.com'],
    'domain': ['gmail.com', 'techcorp.com', 'yahoo.com']
})

print("Testing OLD system...")
config = MatchConfig(
    job_id="test",
    src_path="dummy",
    ref_path="dummy",
    use_new_preprocessing=False
)

result = preprocess(
    df=df.copy(),
    block_key_length=3,
    strip_b2c_domains=True,
    config=config
)

print("Result:")
print(result)
print("\nDone!")