Skip to content

Commit

Permalink
fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanhecl committed Nov 10, 2024
1 parent ccc1b2c commit c0e137a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v2/vision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ func TestVisionImage(t *testing.T) {
if err != nil {
t.Fatalf("Failed to get output: %v", err)
}
if len(generatedOutput.Content) == 0 {
if len(generatedOutput) == 0 {
t.Fatalf("Generated output for the prompt %s is empty.\n", prompt)
}
if !strings.Contains(generatedOutput.Content, "1") {
t.Fatalf("Generated output for the prompt %s does not contain '1'. Output: %s", prompt, generatedOutput.Content)
if !strings.Contains(generatedOutput, "1") {
t.Fatalf("Generated output for the prompt %s does not contain '1'. Output: %s", prompt, generatedOutput)
}
}

0 comments on commit c0e137a

Please sign in to comment.