We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db91b40 commit 2402b29Copy full SHA for 2402b29
go/expression_examples_test.go
@@ -17,7 +17,7 @@ func TestExamples(t *testing.T) {
17
18
chunks := strings.Split(string(examples), "---")
19
for _, chunk := range chunks {
20
- lines := strings.Split(strings.TrimSpace(chunk), "\n")
+ lines := strings.Split(strings.TrimSpace(chunk), "\r?\n")
21
expressionText, text, expectedArgs := lines[0], lines[1], lines[2]
22
t.Run(fmt.Sprintf("works with %s", expressionText), func(t *testing.T) {
23
args := MatchExample(t, expressionText, text)
0 commit comments