MCPcopy Create free account
hub / github.com/atripati/ark / TestOptimizePromptCoding

Function TestOptimizePromptCoding

pkg/runtime/quality_test.go:8–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func TestOptimizePromptCoding(t *testing.T) {
9 result := OptimizePrompt("write a function to parse CSV in Go", "coding")
10 if !strings.Contains(result, "Quality constraints") {
11 t.Error("expected quality constraints for coding task")
12 }
13 if !strings.Contains(result, "simplest correct approach") {
14 t.Error("expected simplicity constraint for coding")
15 }
16}
17
18func TestOptimizePromptPrecise(t *testing.T) {
19 // Already precise prompts should not be modified

Callers

nothing calls this directly

Calls 2

OptimizePromptFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected