@@ -39,9 +39,12 @@ func TestBasic(t *testing.T) {
3939 if err != nil {
4040 t .Fatal (err )
4141 }
42+ for i := range got {
43+ got [i ] = filepath .ToSlash (got [i ])
44+ }
4245 want := []string {
43- path .Join (testdataDir , source , "resources.proto" ),
44- path .Join (testdataDir , source , "service.proto" ),
46+ filepath . ToSlash ( path .Join (testdataDir , source , "resources.proto" ) ),
47+ filepath . ToSlash ( path .Join (testdataDir , source , "service.proto" ) ),
4548 }
4649 if diff := cmp .Diff (want , got ); len (diff ) != 0 {
4750 t .Errorf ("mismatched merged config (-want, +got):\n %s" , diff )
@@ -71,8 +74,11 @@ func TestIncludeList(t *testing.T) {
7174 if err != nil {
7275 t .Fatal (err )
7376 }
77+ for i := range got {
78+ got [i ] = filepath .ToSlash (got [i ])
79+ }
7480 want := []string {
75- path .Join (testdataDir , source , "resources.proto" ),
81+ filepath . ToSlash ( path .Join (testdataDir , source , "resources.proto" ) ),
7682 }
7783 if diff := cmp .Diff (want , got ); len (diff ) != 0 {
7884 t .Errorf ("mismatched merged config (-want, +got):\n %s" , diff )
@@ -89,8 +95,11 @@ func TestExcludeList(t *testing.T) {
8995 if err != nil {
9096 t .Fatal (err )
9197 }
98+ for i := range got {
99+ got [i ] = filepath .ToSlash (got [i ])
100+ }
92101 want := []string {
93- path .Join (testdataDir , source , "service.proto" ),
102+ filepath . ToSlash ( path .Join (testdataDir , source , "service.proto" ) ),
94103 }
95104 if diff := cmp .Diff (want , got ); len (diff ) != 0 {
96105 t .Errorf ("mismatched merged config (-want, +got):\n %s" , diff )
0 commit comments