@@ -18,7 +18,7 @@ func TestParse(t *testing.T) {
18
18
parsed * Archive
19
19
}{
20
20
{
21
- name : "basic LF" ,
21
+ name : "basic with line ending LF" ,
22
22
text : `comment1
23
23
comment2
24
24
-- file1 --
@@ -45,7 +45,7 @@ parsed: &Archive{
45
45
},
46
46
},
47
47
{
48
- name : "basic CRLF" ,
48
+ name : "basic with line ending CRLF" ,
49
49
text : "comment1\r \n " +
50
50
"comment2\r \n " +
51
51
"-- file1 --\r \n " +
@@ -72,7 +72,7 @@ parsed: &Archive{
72
72
},
73
73
},
74
74
{
75
- name : "mixed" ,
75
+ name : "mixed line endings " ,
76
76
text : "comment1\n " +
77
77
"comment2\r \n " +
78
78
"-- file1 --\r \n " +
@@ -126,7 +126,7 @@ func TestFormat(t *testing.T) {
126
126
wanted string
127
127
}{
128
128
{
129
- name : "basic LF" ,
129
+ name : "basic with line ending LF" ,
130
130
input : & Archive {
131
131
Comment : []byte ("comment1\n comment2\n " ),
132
132
Files : []File {
@@ -151,7 +151,7 @@ hello world
151
151
` ,
152
152
},
153
153
{
154
- name : "basic CRLF" ,
154
+ name : "basic with line ending CRLF" ,
155
155
input : & Archive {
156
156
Comment : []byte ("comment1\r \n comment2\r \n " ),
157
157
Files : []File {
@@ -175,7 +175,7 @@ hello world
175
175
"hello world\r \n " ,
176
176
},
177
177
{
178
- name : "mixed" ,
178
+ name : "mixed line endings " ,
179
179
input : & Archive {
180
180
Comment : []byte ("comment1\n comment2\r \n " ),
181
181
Files : []File {
@@ -212,7 +212,6 @@ hello world
212
212
t .Run (tt .name , func (t * testing.T ) {
213
213
result := Format (tt .input )
214
214
if string (result ) != tt .wanted {
215
- fmt .Println (len (string (result )), len (tt .wanted ))
216
215
t .Errorf ("Wrong output. \n Got:\n %s\n Want:\n %s\n " , string (result ), tt .wanted )
217
216
}
218
217
})
0 commit comments