Skip to content

Commit

Permalink
Merge pull request #105 from isimluk/fix-windows
Browse files Browse the repository at this point in the history
Bring back CRLF fix
  • Loading branch information
isimluk authored Nov 20, 2023
2 parents 59c2bee + 86b6fca commit 7924658
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/smoke_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"os"
"os/exec"
"path/filepath"
"strings"
"testing"

"github.com/gocomply/xsd2go/pkg/xsd2go"
Expand All @@ -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))
}
}

Expand Down

0 comments on commit 7924658

Please sign in to comment.