package main import ( "testing" ) func TestCleanString(t *testing.T) { testCases := []struct { input string expected string }{ {"Hello, World!", "Hello World"}, {"Hello-World123!", "Hello-World123"}, {"Special@Characters", "SpecialCharacters"}, {" Trimmed Spaces ", "Trimmed Spaces"}, } for _, tc := range testCases { result := CleanString(tc.input) if result != tc.expected { t.Errorf("expected '%s', got '%s'", tc.expected, result) } } } func TestRemoveHTMLTags(t *testing.T) { testCases := []struct { input string expected string }{ {"

Hello, World!

", "Hello, World!"}, {"

Test

", "Test"}, {"

Title

Content

", "TitleContent"}, } for _, tc := range testCases { result := RemoveHTMLTags(tc.input) if result != tc.expected { t.Errorf("expected '%s', got '%s'", tc.expected, result) } } }