@@ -593,7 +593,9 @@ func TestList(t *testing.T) {
593
593
}
594
594
actual := stdout .String ()
595
595
expected := `
596
- This is a comment on the package which should get turned into output with the list of targets.
596
+ This is a comment on the package which should get turned into output with the
597
+ list of targets.
598
+
597
599
598
600
Targets:
599
601
somePig* This is the synopsis for SomePig.
@@ -629,7 +631,9 @@ func TestListWithColor(t *testing.T) {
629
631
os .Setenv (mg .TargetColorEnv , mg .Cyan .String ())
630
632
631
633
expectedPlainText := `
632
- This is a comment on the package which should get turned into output with the list of targets.
634
+ This is a comment on the package which should get turned into output with the
635
+ list of targets.
636
+
633
637
634
638
Targets:
635
639
somePig* This is the synopsis for SomePig.
@@ -642,8 +646,8 @@ Targets:
642
646
// in the middle and join with a normal string for the target names,
643
647
// otherwise the single backslash would be taken literally and encoded as \\
644
648
expectedColorizedText := "" +
645
- "This is a comment on the package which should get turned into output with the list of targets.\n " +
646
- "\n " +
649
+ "This is a comment on the package which should get turned into output with the\n list of targets.\n " +
650
+ "\n \n " +
647
651
"Targets:\n " +
648
652
" \x1b [36msomePig*\x1b [0m This is the synopsis for SomePig.\n " +
649
653
" \x1b [36mtestVerbose\x1b [0m \n " +
@@ -730,7 +734,9 @@ func TestIgnoreDefault(t *testing.T) {
730
734
}
731
735
actual := stdout .String ()
732
736
expected := `
733
- This is a comment on the package which should get turned into output with the list of targets.
737
+ This is a comment on the package which should get turned into output with the
738
+ list of targets.
739
+
734
740
735
741
Targets:
736
742
somePig* This is the synopsis for SomePig.
0 commit comments