Skip to content

Commit

Permalink
Fix line ending issue for generate_test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlu committed Jun 6, 2020
1 parent ef6e601 commit be9c2a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions language/go/generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func TestGenerateRules(t *testing.T) {
t.Fatalf("error reading %s: %v", wantPath, err)
}
want := string(wantBytes)
want = strings.ReplaceAll(want, "\r\n", "\n")

if got != want {
t.Errorf("GenerateRules %q: got:\n%s\nwant:\n%s", rel, got, want)
Expand Down

0 comments on commit be9c2a8

Please sign in to comment.