package catalog

import (
	"path/filepath"
	"testing"
)

// TestShippedCatalog validates the catalog source at the repository root, as
// required by AGENTS.md §7.
func TestShippedCatalog(t *testing.T) {
	c, err := Load(filepath.Join("..", "..", "tools.yaml"))
	if err != nil {
		t.Fatalf("shipped tools.yaml is invalid: %v", err)
	}
	if len(c.Tools) == 0 {
		t.Fatal("shipped tools.yaml lists no tools")
	}
	if _, ok := c.Find("nmap"); !ok {
		t.Error("shipped tools.yaml lacks the nmap reference entry (§2.2)")
	}
}
