| 891 | } |
| 892 | |
| 893 | func checkOutputData(t *testing.T, expectedOutput, actual []byte) { |
| 894 | t.Helper() |
| 895 | expectedOutput = bytes.ReplaceAll(expectedOutput, []byte("\r\n"), []byte("\n")) |
| 896 | actual = bytes.ReplaceAll(actual, []byte("\r\n"), []byte("\n")) |
| 897 | |
| 898 | if !bytes.Equal(actual, expectedOutput) { |
| 899 | t.Errorf("output did not match (expected %d bytes, got %d bytes):", len(expectedOutput), len(actual)) |
| 900 | t.Error(string(Diff("expected", expectedOutput, "actual", actual))) |
| 901 | } |
| 902 | } |
| 903 | |
| 904 | func TestTest(t *testing.T) { |
| 905 | t.Parallel() |