(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func 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 | |
| 18 | func TestOptimizePromptPrecise(t *testing.T) { |
| 19 | // Already precise prompts should not be modified |
nothing calls this directly
no test coverage detected