func TestExactMatchAgainst(t *testing.T) { s := suggest.Suggest{} for _, tt := range writeTests { query := tt.query commands := tt.commands actual := s.ExactMatchAgainst(query, commands) if actual != tt.expected { t.Errorf("ExactMatchAgainst(%q, %v) = %q, want %q", tt.query, tt.commands, actual, tt.expected) } } }