@@ -27,33 +27,39 @@ describe('format', () => {
2727 }
2828 } ) ( 'string value' ) ,
2929 ] ,
30+ [ '%s' , Symbol ( 'test' ) ] ,
3031 [ '%d' , 100 ] ,
3132 [ '%d' , 100n ] ,
3233 [ '%d' , null ] ,
3334 [ '%d' , { } ] ,
3435 [ '%d' , { } , 'next' ] ,
36+ [ '%d' , Symbol ( 'test' ) ] ,
3537 [ '%i' , 100 ] ,
3638 [ '%i' , 100n ] ,
3739 [ '%i' , null ] ,
3840 [ '%i' , { } ] ,
3941 [ '%i' , { } , 'next' ] ,
42+ [ '%i' , Symbol ( 'test' ) ] ,
4043 [ '%f' , 100 ] ,
4144 [ '%f' , 100n ] ,
4245 [ '%f' , null ] ,
4346 [ '%f' , { } ] ,
4447 [ '%f' , { } , 'next' ] ,
48+ [ '%f' , Symbol ( 'test' ) ] ,
4549 [ '%o' , 'string' ] ,
4650 [ '%o' , 100 ] ,
4751 [ '%o' , 100n ] ,
4852 [ '%o' , null ] ,
4953 [ '%o' , { } ] ,
5054 [ '%o' , { } , 'next' ] ,
55+ [ '%o' , Symbol ( 'test' ) ] ,
5156 [ '%O' , 'string' ] ,
5257 [ '%O' , 100 ] ,
5358 [ '%O' , 100n ] ,
5459 [ '%O' , null ] ,
5560 [ '%O' , { } ] ,
5661 [ '%O' , { } , 'next' ] ,
62+ [ '%O' , Symbol ( 'test' ) ] ,
5763 [ '%c' , 'css value' ] ,
5864 [ '%c' , 'css value' , 'some other value' ] ,
5965 [ '%c %f' , 'css value' , '100.00' ] ,
@@ -64,7 +70,9 @@ describe('format', () => {
6470 [ '%j' , { } , 'next' ] ,
6571 [ '%j' , { obj } ] ,
6672 [ '%j' , { fn : ( ) => { } } ] ,
73+ [ '%j' , Symbol ( 'test' ) ] ,
6774 [ '%%' , 'string' ] ,
75+ [ 'prefix' , Symbol ( 'test' ) ] ,
6876 ] ) ( 'format(%s)' , ( formatString , ...args ) => {
6977 expect ( format ( formatString , ...args ) , `failed ${ formatString } ` ) . toBe ( util . format ( formatString , ...args ) )
7078 } )
0 commit comments