21 lines
518 B
Go
21 lines
518 B
Go
package orchestrator
|
|
|
|
import (
|
|
"orchestra/internal/domain"
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestTaskLaunchPromptIncludesRemoteTaskInstructions(t *testing.T) {
|
|
prompt := taskLaunchPrompt(domain.Task{
|
|
ID: "task-1",
|
|
Title: "Create marker",
|
|
Description: "Create E2E_RESULT.md containing ok.",
|
|
})
|
|
for _, want := range []string{"task-1", "Create marker", "Create E2E_RESULT.md containing ok."} {
|
|
if !strings.Contains(prompt, want) {
|
|
t.Fatalf("launch prompt missing %q: %s", want, prompt)
|
|
}
|
|
}
|
|
}
|