package batch

import "testing"

func TestNormalizeProviderID(t *testing.T) {
	t.Parallel()

	first := NormalizeProviderID("https://api.deepseek.com/v1")
	second := NormalizeProviderID("https://api.deepseek.com/proxy/v1")

	if first == second {
		t.Fatalf("NormalizeProviderID() = %q for both URLs, want distinct ids", first)
	}
	if first == "" || second == "" {
		t.Fatalf("NormalizeProviderID() returned empty ids: %q %q", first, second)
	}
	if got := first[:12]; got != "api-deepseek" {
		t.Fatalf("NormalizeProviderID() prefix = %q, want api-deepseek*", first)
	}
}
