@@ -22,15 +22,16 @@ func getFileReader(filename string) io.Reader {
2222
2323func TestFormatXml (t * testing.T ) {
2424 files := map [string ]string {
25- "unformatted.xml" : "formatted.xml" ,
26- "unformatted2.xml" : "formatted2.xml" ,
27- "unformatted3.xml" : "formatted3.xml" ,
28- "unformatted4.xml" : "formatted4.xml" ,
29- "unformatted5.xml" : "formatted5.xml" ,
30- "unformatted6.xml" : "formatted6.xml" ,
31- "unformatted7.xml" : "formatted7.xml" ,
32- "unformatted8.xml" : "formatted8.xml" ,
33- "unformatted9.xml" : "formatted9.xml" ,
25+ "unformatted.xml" : "formatted.xml" ,
26+ "unformatted2.xml" : "formatted2.xml" ,
27+ "unformatted3.xml" : "formatted3.xml" ,
28+ "unformatted4.xml" : "formatted4.xml" ,
29+ "unformatted5.xml" : "formatted5.xml" ,
30+ "unformatted6.xml" : "formatted6.xml" ,
31+ "unformatted7.xml" : "formatted7.xml" ,
32+ "unformatted8.xml" : "formatted8.xml" ,
33+ "unformatted9.xml" : "formatted9.xml" ,
34+ "unformatted10.xml" : "formatted10.xml" ,
3435 }
3536
3637 for unformattedFile , expectedFile := range files {
@@ -53,6 +54,7 @@ func TestFormatHtml(t *testing.T) {
5354 "unformatted2.html" : "formatted2.html" ,
5455 "unformatted3.html" : "formatted3.html" ,
5556 "unformatted4.html" : "formatted4.html" ,
57+ "unformatted5.html" : "formatted5.html" ,
5658 "unformatted.xml" : "formatted.xml" ,
5759 }
5860
@@ -102,3 +104,9 @@ func TestPagerPrint(t *testing.T) {
102104 assert .Nil (t , err )
103105 assert .Contains (t , output .String (), "<html>" )
104106}
107+
108+ func TestEscapeText (t * testing.T ) {
109+ result , err := escapeText ("\" value\" " )
110+ assert .Nil (t , err )
111+ assert .Equal (t , ""value"" , result )
112+ }
0 commit comments