Files
gronod d40646211f
Build and publish / Test and build (darwin) (push) Failing after 1m42s
Build and publish / Test and build (linux) (push) Failing after 1m53s
Build and publish / Test and build (windows) (push) Failing after 2m50s
Build and publish / Build and publish Docker image (push) Skipped
Initial Go implementation of Emby.MCP
Go rewrite of the Python Emby.MCP server with tool parity (20 tools),
plus a streamable-HTTP transport with per-request Emby authentication
(Basic / Bearer token passthrough), a multi-arch Docker build, and a
Gitea CI workflow.
2026-09-20 22:52:46 +01:00

26 lines
520 B
Go

package textutil
import "testing"
func TestFold(t *testing.T) {
cases := map[string]string{
"Café MÜLLER": "cafe muller",
"Hello": "hello",
"naïve": "naive",
}
for in, want := range cases {
if got := Fold(in); got != want {
t.Errorf("Fold(%q) = %q, want %q", in, got, want)
}
}
}
func TestContainsFold(t *testing.T) {
if !ContainsFold("The über cast of café", "uber") {
t.Error("expected fold match")
}
if ContainsFold("hello world", "bye") {
t.Error("unexpected match")
}
}