Skip to content

Commit 2402b29

Browse files
committed
Fix go tests
1 parent db91b40 commit 2402b29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/expression_examples_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func TestExamples(t *testing.T) {
1717

1818
chunks := strings.Split(string(examples), "---")
1919
for _, chunk := range chunks {
20-
lines := strings.Split(strings.TrimSpace(chunk), "\n")
20+
lines := strings.Split(strings.TrimSpace(chunk), "\r?\n")
2121
expressionText, text, expectedArgs := lines[0], lines[1], lines[2]
2222
t.Run(fmt.Sprintf("works with %s", expressionText), func(t *testing.T) {
2323
args := MatchExample(t, expressionText, text)

0 commit comments

Comments
 (0)