fix
This commit is contained in:
@@ -17,12 +17,18 @@ func TestResolvePromptFallbackChain(t *testing.T) {
|
||||
CategoryEnhancePrompt: "cat-sl",
|
||||
Language: "sl",
|
||||
})
|
||||
if sys != "sys" {
|
||||
t.Fatalf("sys=%q", sys)
|
||||
if !strings.Contains(sys, "sys") {
|
||||
t.Fatalf("sys=%q want company system kept", sys)
|
||||
}
|
||||
if !strings.HasPrefix(user, "cat-sl") || !strings.Contains(user, "{{attrs}}") {
|
||||
if !strings.Contains(sys, `apply it to "name", "description", and "attrs"`) {
|
||||
t.Fatalf("sys=%q want category overlay for title+description+attrs", sys)
|
||||
}
|
||||
if !strings.Contains(user, "cat-sl") || !strings.Contains(user, "{{attrs}}") {
|
||||
t.Fatalf("sys=%q user=%q want cat-sl + attrs", sys, user)
|
||||
}
|
||||
if !strings.Contains(user, "applies to name, description, and attrs") {
|
||||
t.Fatalf("user=%q want title framing", user)
|
||||
}
|
||||
|
||||
// Empty category → company template.
|
||||
_, user = resolveProductPromptTemplates(ProductInput{
|
||||
|
||||
Reference in New Issue
Block a user