Skip to content
Snippets Groups Projects
Commit 6077a84c authored by Neil Pankey's avatar Neil Pankey
Browse files

test: build on go 1.11

parent bb09bb6f
No related branches found
No related tags found
No related merge requests found
...@@ -69,10 +69,10 @@ func TestMain(t *testing.T) { ...@@ -69,10 +69,10 @@ func TestMain(t *testing.T) {
} }
for _, tt := range tests { for _, tt := range tests {
in := strings.ReplaceAll(tt.in, "/", string(filepath.Separator)) in := strings.Replace(tt.in, "/", string(filepath.Separator), -1)
sort.Strings(tt.out) sort.Strings(tt.out)
out := strings.Join(tt.out, "\n") out := strings.Join(tt.out, "\n")
out = strings.ReplaceAll(out, "/", string(filepath.Separator)) out = strings.Replace(out, "/", string(filepath.Separator), -1)
t.Run(in, func(t *testing.T) { t.Run(in, func(t *testing.T) {
var w strings.Builder var w strings.Builder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment