File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ fn test_pointer_formats_data_pointer() {
22
22
#[ test]
23
23
fn test_estimated_capacity ( ) {
24
24
assert_eq ! ( format_args!( "" ) . estimated_capacity( ) , 0 ) ;
25
- assert_eq ! ( format_args!( "{}" , "" ) . estimated_capacity( ) , 0 ) ;
25
+ assert_eq ! ( format_args!( "{}" , { "" } ) . estimated_capacity( ) , 0 ) ;
26
26
assert_eq ! ( format_args!( "Hello" ) . estimated_capacity( ) , 5 ) ;
27
- assert_eq ! ( format_args!( "Hello, {}!" , "" ) . estimated_capacity( ) , 16 ) ;
28
- assert_eq ! ( format_args!( "{}, hello!" , "World" ) . estimated_capacity( ) , 0 ) ;
29
- assert_eq ! ( format_args!( "{}. 16-bytes piece" , "World" ) . estimated_capacity( ) , 32 ) ;
27
+ assert_eq ! ( format_args!( "Hello, {}!" , { "" } ) . estimated_capacity( ) , 16 ) ;
28
+ assert_eq ! ( format_args!( "{}, hello!" , { "World" } ) . estimated_capacity( ) , 0 ) ;
29
+ assert_eq ! ( format_args!( "{}. 16-bytes piece" , { "World" } ) . estimated_capacity( ) , 32 ) ;
30
30
}
31
31
32
32
#[ test]
You can’t perform that action at this time.
0 commit comments