File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,8 @@ func isSpecialBlock(comment string) bool {
230
230
strings .Contains (comment , "#define" )) {
231
231
return true
232
232
}
233
- if strings .HasPrefix (comment , "// Output: " ) {
233
+ if strings .HasPrefix (comment , "// Output:" ) ||
234
+ strings .HasPrefix (comment , "// Unordered output:" ) {
234
235
return true
235
236
}
236
237
return false
Original file line number Diff line number Diff line change @@ -420,10 +420,15 @@ func TestIsSpecialBlock(t *testing.T) {
420
420
isSpecial : true ,
421
421
},
422
422
{
423
- name : "Test output" ,
423
+ name : "Test testing output" ,
424
424
comment : "// Output: true" ,
425
425
isSpecial : true ,
426
426
},
427
+ {
428
+ name : "Test multiline testing output" ,
429
+ comment : "// Output:\n // true\n // false" ,
430
+ isSpecial : true ,
431
+ },
427
432
}
428
433
429
434
for _ , tt := range testCases {
You can’t perform that action at this time.
0 commit comments