diff --git a/cli_test.go b/cli_test.go index 17ea9bf..0811f03 100644 --- a/cli_test.go +++ b/cli_test.go @@ -8,6 +8,7 @@ import ( "path" "reflect" "runtime" + "strings" "testing" ) @@ -45,6 +46,7 @@ func TestCliUsage(t *testing.T) { } gotUsage := stderr.Bytes() + t.Log(strings.Index(string(gotUsage), "\r\n")) expectedUsage, err := os.ReadFile(goldenFilepath) if err != nil { @@ -54,6 +56,8 @@ func TestCliUsage(t *testing.T) { } t.FailNow() } + t.Log(strings.Index(string(expectedUsage), "\r\n")) + if !reflect.DeepEqual(expectedUsage, gotUsage) { t.Errorf("expected and got data mismatch. ..writing expected output to %[1]s", goldenFilepathNew) if err := writeExpectedGoldenFile(goldenFilepathNew, gotUsage); err != nil {