package slug import "testing" func TestMake(t *testing.T) { for in, want := range map[string]string{ "PW Test Signal Ünïcode & Co.": "pw-test-signal-unicode-co", "Straße, Æsir, Łódź": "strasse-aesir-lodz", " Leaving M365 ": "leaving-m365", "日本": "", } { if got := Make(in); got != want { t.Errorf("Make(%q) = %q, want %q", in, got, want) } } }