gateway_sanitize_test.go 326 B

1234567891011121314
  1. package service
  2. import (
  3. "strings"
  4. "testing"
  5. "github.com/stretchr/testify/require"
  6. )
  7. func TestSanitizeOpenCodeText_RewritesCanonicalSentence(t *testing.T) {
  8. in := "You are OpenCode, the best coding agent on the planet."
  9. got := sanitizeSystemText(in)
  10. require.Equal(t, strings.TrimSpace(claudeCodeSystemPrompt), got)
  11. }