tests: fix line endings in windows

This commit is contained in:
Adrien Delorme 2020-07-06 17:53:08 +02:00
parent 0deaa5d2a5
commit 0475b0529d
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package command
import "strings"
func init() {
spaghettiCarbonara = fixWindowsLineEndings(spaghettiCarbonara)
lasagna = fixWindowsLineEndings(lasagna)
}
func fixWindowsLineEndings(s string) string {
return strings.ReplaceAll(s, "\n", " \r\n")
}