fix
This commit is contained in:
@@ -49,7 +49,7 @@ func TestRunSteps_enhanceMockHappyPath(t *testing.T) {
|
||||
Completer: stubCompleter{fn: func(system, _ string) (Completion, error) {
|
||||
gotSystem = system
|
||||
return Completion{
|
||||
Text: `{"name":"Mock Shoe","description":"Light runner for tests."}`,
|
||||
Text: `{"name":"Mock Shoe","description":"Mock Shoe is a light runner built for daily miles, with cushioned foam midsole and a grippy outsole that stays stable on wet pavement."}`,
|
||||
TotalTokens: 11,
|
||||
Model: "mock",
|
||||
}, nil
|
||||
@@ -68,6 +68,15 @@ func TestRunSteps_enhanceMockHappyPath(t *testing.T) {
|
||||
if out.ProcessedName != "Mock Shoe" {
|
||||
t.Fatalf("ProcessedName=%q", out.ProcessedName)
|
||||
}
|
||||
if out.Name != "Shoe" {
|
||||
t.Fatalf("Original Name must stay supplier, got %q", out.Name)
|
||||
}
|
||||
if out.Description != "runner" {
|
||||
t.Fatalf("Original Description must stay supplier, got %q", out.Description)
|
||||
}
|
||||
if out.ProcessedDescription != "Mock Shoe is a light runner built for daily miles, with cushioned foam midsole and a grippy outsole that stays stable on wet pavement." {
|
||||
t.Fatalf("ProcessedDescription=%q", out.ProcessedDescription)
|
||||
}
|
||||
if out.TotalTokens != 11 {
|
||||
t.Fatalf("TotalTokens=%d", out.TotalTokens)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user