From 86b6fca15176e07d984ef00f3e5dcd9093575735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Luka=C5=A1=C3=ADk?= Date: Mon, 20 Nov 2023 12:17:45 +0100 Subject: [PATCH] Bring back CRLF fix This partially reverts commit 032abf4c777fa62c7d8b57f21037882f2851c7ec. --- tests/smoke_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/smoke_test.go b/tests/smoke_test.go index 67270b8..a4906d4 100644 --- a/tests/smoke_test.go +++ b/tests/smoke_test.go @@ -5,6 +5,7 @@ import ( "os" "os/exec" "path/filepath" + "strings" "testing" "github.com/gocomply/xsd2go/pkg/xsd2go" @@ -22,7 +23,7 @@ func TestSanity(t *testing.T) { expected, err := os.ReadFile(xsdPath + ".out") require.NoError(t, err) - assert.Equal(t, string(expected), string(actual)) + assert.Equal(t, strings.ReplaceAll(string(expected), "\r\n", "\n"), string(actual)) } }