@@ -99,7 +99,6 @@ pub fn main() {
9999 let a: & dyn fmt:: Debug = & 1 ;
100100 t ! ( format!( "{:?}" , a) , "1" ) ;
101101
102-
103102 // Formatting strings and their arguments
104103 t ! ( format!( "{}" , "a" ) , "a" ) ;
105104 t ! ( format!( "{:4}" , "a" ) , "a " ) ;
@@ -187,10 +186,6 @@ pub fn main() {
187186 // Ergonomic format_args!
188187 t ! ( format!( "{0:x} {0:X}" , 15 ) , "f F" ) ;
189188 t ! ( format!( "{0:x} {0:X} {}" , 15 ) , "f F 15" ) ;
190- // NOTE: For now the longer test cases must not be followed immediately by
191- // >1 empty lines, or the pretty printer will break. Since no one wants to
192- // touch the current pretty printer (#751), we have no choice but to work
193- // around it. Some of the following test cases are also affected.
194189 t ! ( format!( "{:x}{0:X}{a:x}{:X}{1:x}{a:X}" , 13 , 14 , a=15 ) , "dDfEeF" ) ;
195190 t ! ( format!( "{a:x} {a:X}" , a=15 ) , "f F" ) ;
196191
@@ -201,7 +196,6 @@ pub fn main() {
201196 t ! ( format!( "{a:.*} {0} {:.*}" , 4 , 3 , "efgh" , a="abcdef" ) , "abcd 4 efg" ) ;
202197 t ! ( format!( "{:.a$} {a} {a:#x}" , "aaaaaa" , a=2 ) , "aa 2 0x2" ) ;
203198
204-
205199 // Test that pointers don't get truncated.
206200 {
207201 let val = usize:: MAX ;
0 commit comments