File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -284,6 +284,38 @@ func TestDirective_Equal(t *testing.T) {
284
284
b : nil ,
285
285
equal : true ,
286
286
},
287
+ {
288
+ a : & Directive {
289
+ Directive : "location" ,
290
+ IsMapBlockParameter : false ,
291
+ },
292
+ b : & Directive {
293
+ Directive : "location" ,
294
+ IsMapBlockParameter : true ,
295
+ },
296
+ equal : false ,
297
+ },
298
+ {
299
+ a : & Directive {
300
+ Directive : "location" ,
301
+ Block : []* Directive {
302
+ {
303
+ Directive : "root" ,
304
+ Args : []string {"/data/images" },
305
+ },
306
+ },
307
+ },
308
+ b : & Directive {
309
+ Directive : "location" ,
310
+ Block : []* Directive {
311
+ {
312
+ Directive : "root" ,
313
+ Args : []string {"/other" },
314
+ },
315
+ },
316
+ },
317
+ equal : false ,
318
+ },
287
319
} {
288
320
eq := ef .a .Equal (ef .b )
289
321
if eq != ef .equal {
You can’t perform that action at this time.
0 commit comments