@@ -266,17 +266,18 @@ const tests: Array<[string, any, string]> = [
266
266
[ "%3c" , "⌘" . charCodeAt ( 0 ) , " ⌘" ] ,
267
267
[ "%-3c" , "⌘" . charCodeAt ( 0 ) , "⌘ " ] ,
268
268
// Runes that are not printable.
269
- // {"%c", '\U00000e00', "\u0e00"}, // TODO check if \U escape exists in js
269
+ // {"%c", '\U00000e00', "\u0e00"},
270
+ // TODO(bartlomieju) check if \U escape exists in js
270
271
//["%c", '\U0010ffff'.codePointAt(0), "\U0010ffff"],
271
272
272
273
// Runes that are not valid.
273
274
[ "%c" , - 1 , "�" ] ,
274
- // TODO surrogate half, doesn't make sense in itself, how
275
+ // TODO(bartomieju): surrogate half, doesn't make sense in itself, how
275
276
// to determine in JS?
276
277
// ["%c", 0xDC80, "�"],
277
278
[ "%c" , 0x110000 , "�" ] ,
278
279
[ "%c" , 0xfffffffff , "�" ] ,
279
- // TODO
280
+ // TODO(bartlomieju):
280
281
// escaped characters
281
282
// Runes that are not printable.
282
283
// Runes that are not valid.
@@ -291,7 +292,8 @@ const tests: Array<[string, any, string]> = [
291
292
[ "%.0s" , "日本語日本語" , "" ] ,
292
293
[ "%.5s" , "日本語日本語" , "日本語日本" ] ,
293
294
[ "%.10s" , "日本語日本語" , "日本語日本語" ] ,
294
- // ["%08q", "abc", `000"abc"`], // TODO verb q
295
+ // ["%08q", "abc", `000"abc"`],
296
+ // TODO(bartlomieju): verb q
295
297
// ["%-8q", "abc", `"abc" `],
296
298
//["%.5q", "abcdefghijklmnopqrstuvwxyz", `"abcde"`],
297
299
[ "%.5x" , "abcdefghijklmnopqrstuvwxyz" , "6162636465" ] ,
@@ -301,7 +303,8 @@ const tests: Array<[string, any, string]> = [
301
303
// our %x takes lower byte of string "%.1x", "日本語", "e6"],,
302
304
[ "%.1x" , "日本語" , "e5" ] ,
303
305
//["%10.1q", "日本語日本語", ` "日"`],
304
- // ["%10v", null, " <nil>"], // TODO null, undefined ...
306
+ // ["%10v", null, " <nil>"],
307
+ // TODO(bartlomieju): null, undefined ...
305
308
// ["%-10v", null, "<nil> "],
306
309
307
310
// integers
@@ -353,8 +356,10 @@ const tests: Array<[string, any, string]> = [
353
356
[ "%-#20.8x" , 0x1234abc , "0x01234abc " ] ,
354
357
[ "%-#20.8X" , 0x1234abc , "0X01234ABC " ] ,
355
358
[ "%-#20.8o" , parseInt ( "01234" , 8 ) , "00001234 " ] ,
356
- // Test correct f.intbuf overflow checks. // TODO, lazy
357
- // unicode format // TODO, decide whether unicode verb makes sense %U
359
+ // Test correct f.intbuf overflow checks.
360
+ // TODO(bartlomieju): lazy
361
+ // unicode format
362
+ // TODO(bartlomieju): decide whether unicode verb makes sense %U
358
363
359
364
// floats
360
365
[ "%+.3e" , 0.0 , "+0.000e+00" ] ,
@@ -490,10 +495,11 @@ const tests: Array<[string, any, string]> = [
490
495
[ "%g" , 1.23456789e-3 , "0.00123457" ] , // see above prec6 = precdef6 - (-3+1)
491
496
//["%g", 1.23456789e20, "1.23456789e+20"],
492
497
[ "%g" , 1.23456789e20 , "1.23457e+20" ] ,
493
- // arrays // TODO
498
+ // arrays
499
+ // TODO(bartlomieju):
494
500
// slice : go specific
495
501
496
- // TODO decide how to handle deeper types, arrays, objects
502
+ // TODO(bartlomieju): decide how to handle deeper types, arrays, objects
497
503
// byte arrays and slices with %b,%c,%d,%o,%U and %v
498
504
// f.space should and f.plus should not have an effect with %v.
499
505
// f.space and f.plus should have an effect with %d.
0 commit comments