diff --git a/docs_test.go b/docs_test.go index e52cf8b..cea34ae 100644 --- a/docs_test.go +++ b/docs_test.go @@ -1,6 +1,7 @@ package cli import ( + "bytes" "io/ioutil" "testing" ) @@ -73,6 +74,8 @@ func testApp() *App { func expectFileContent(t *testing.T, file, expected string) { data, err := ioutil.ReadFile(file) + // Ignore windows line endings + expected = string(bytes.ReplaceAll([]byte(expected), []byte("\r\n"), []byte("\n"))) expect(t, err, nil) expect(t, string(data), expected) }