@@ -232,16 +232,21 @@ func TestFormatTXTContent(t *testing.T) {
232232 {
233233 name : "Short string without quotes" ,
234234 content : "hello world" ,
235- want : ` "hello world"` ,
235+ want : "hello world" ,
236236 },
237237 {
238238 name : "Short string with existing quotes" ,
239239 content : `"hello world"` ,
240240 want : `"hello world"` ,
241241 },
242242 {
243- name : "Exactly 255 characters" ,
243+ name : "Exactly 255 characters unquoted " ,
244244 content : string255 ,
245+ want : string255 ,
246+ },
247+ {
248+ name : "Exactly 255 characters quoted" ,
249+ content : `"` + string255 + `"` ,
245250 want : `"` + string255 + `"` ,
246251 },
247252 {
@@ -283,17 +288,17 @@ func TestUnformatTXTContent(t *testing.T) {
283288 {
284289 name : "Single chunk quoted string" ,
285290 content : `"hello world"` ,
286- want : "hello world" ,
291+ want : ` "hello world"` ,
287292 },
288293 {
289294 name : "Two chunk string" ,
290295 content : `"hello" "world"` ,
291- want : "helloworld" ,
296+ want : ` "helloworld"` ,
292297 },
293298 {
294299 name : "Three chunk string" ,
295300 content : `"chunk1" "chunk2" "chunk3"` ,
296- want : "chunk1chunk2chunk3" ,
301+ want : ` "chunk1chunk2chunk3"` ,
297302 },
298303 }
299304
0 commit comments