package linguistics

import (
	"tercul/internal/platform/config"
	"testing"

	"github.com/stretchr/testify/require"
)

func TestFactory_WiresProviders(t *testing.T) {
	// We won't spin a DB/cache here; this is a smoke test of wiring methods
	cfg, err := config.LoadConfig()
	require.NoError(t, err)
	f := NewLinguisticsFactory(cfg, nil, nil, 2, true, nil)
	ta := f.GetTextAnalyzer().(*BasicTextAnalyzer)
	require.NotNil(t, ta)
}