Files
CyberStrikeAI/internal/openai/claude_reasoning_legacy_test.go
T
2026-08-18 20:31:48 +08:00

11 lines
304 B
Go

package openai
import "testing"
func TestDisplayReasoningContentStripsLegacyClaudeSuffix(t *testing.T) {
raw := "hello" + claudeReasoningRoundTripSep + `[{"type":"thinking"}]`
if got := DisplayReasoningContent(raw); got != "hello" {
t.Fatalf("DisplayReasoningContent() = %q, want hello", got)
}
}