Skip to content

Commit da88a68

Browse files
committed
fix test
Signed-off-by: Grant Linville <[email protected]>
1 parent 95d7c14 commit da88a68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gptscript_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ func TestParseToolWithTextNode(t *testing.T) {
670670
t.Fatalf("No text node found")
671671
}
672672

673-
if tools[1].TextNode.Text != "hello\n" {
673+
if strings.TrimSpace(tools[1].TextNode.Text) != "hello" {
674674
t.Errorf("Unexpected text: %s", tools[1].TextNode.Text)
675675
}
676676
if tools[1].TextNode.Fmt != "markdown" {

0 commit comments

Comments
 (0)