@@ -367,6 +367,8 @@ func TestEscapeCharacters(t *testing.T) {
367
367
tests := []string {
368
368
"Test-one_two&three\\ four~five" ,
369
369
".nh\n \n .PP\n Test-one_two&three\\ \\ four~five\n " ,
370
+ "'foo'\n 'bar'" ,
371
+ ".nh\n \n .PP\n \\ &'foo'\n \\ &'bar'\n " ,
370
372
}
371
373
doTestsInline (t , tests )
372
374
}
@@ -445,23 +447,25 @@ func doTestsParam(t *testing.T, tests []string, params TestParams) {
445
447
execRecoverableTestSuite (t , tests , params , func (candidate * string ) {
446
448
for i := 0 ; i + 1 < len (tests ); i += 2 {
447
449
input := tests [i ]
448
- * candidate = input
449
- expected := tests [i + 1 ]
450
- actual := runMarkdown (* candidate , params )
451
- if actual != expected {
452
- t .Errorf ("\n Input [%#v]\n Expected[%#v]\n Actual [%#v]" ,
453
- * candidate , expected , actual )
454
- }
450
+ t .Run (input , func (t * testing.T ) {
451
+ * candidate = input
452
+ expected := tests [i + 1 ]
453
+ actual := runMarkdown (* candidate , params )
454
+ if actual != expected {
455
+ t .Errorf ("\n Input [%#v]\n Expected[%#v]\n Actual [%#v]" ,
456
+ * candidate , expected , actual )
457
+ }
455
458
456
- // now test every substring to stress test bounds checking
457
- if ! testing .Short () {
458
- for start := 0 ; start < len (input ); start ++ {
459
- for end := start + 1 ; end <= len (input ); end ++ {
460
- * candidate = input [start :end ]
461
- runMarkdown (* candidate , params )
459
+ // now test every substring to stress test bounds checking
460
+ if ! testing .Short () {
461
+ for start := 0 ; start < len (input ); start ++ {
462
+ for end := start + 1 ; end <= len (input ); end ++ {
463
+ * candidate = input [start :end ]
464
+ runMarkdown (* candidate , params )
465
+ }
462
466
}
463
467
}
464
- }
468
+ })
465
469
}
466
470
})
467
471
}
0 commit comments