2026-04-09 15:52:02 +00:00
|
|
|
package utils
|
|
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
|
|
func TestFormatToolFeedbackMessage(t *testing.T) {
|
2026-04-20 10:30:29 +00:00
|
|
|
got := FormatToolFeedbackMessage("read_file", "{\"path\":\"README.md\"}")
|
|
|
|
|
want := "\U0001f527 `read_file`\n```\n{\"path\":\"README.md\"}\n```"
|
2026-04-09 15:52:02 +00:00
|
|
|
if got != want {
|
|
|
|
|
t.Fatalf("FormatToolFeedbackMessage() = %q, want %q", got, want)
|
|
|
|
|
}
|
2026-04-09 16:02:20 +00:00
|
|
|
}
|