@@ -99,7 +99,6 @@ pub fn main() {
99
99
let a: & dyn fmt:: Debug = & 1 ;
100
100
t ! ( format!( "{:?}" , a) , "1" ) ;
101
101
102
-
103
102
// Formatting strings and their arguments
104
103
t ! ( format!( "{}" , "a" ) , "a" ) ;
105
104
t ! ( format!( "{:4}" , "a" ) , "a " ) ;
@@ -187,10 +186,6 @@ pub fn main() {
187
186
// Ergonomic format_args!
188
187
t ! ( format!( "{0:x} {0:X}" , 15 ) , "f F" ) ;
189
188
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.
194
189
t ! ( format!( "{:x}{0:X}{a:x}{:X}{1:x}{a:X}" , 13 , 14 , a=15 ) , "dDfEeF" ) ;
195
190
t ! ( format!( "{a:x} {a:X}" , a=15 ) , "f F" ) ;
196
191
@@ -201,7 +196,6 @@ pub fn main() {
201
196
t ! ( format!( "{a:.*} {0} {:.*}" , 4 , 3 , "efgh" , a="abcdef" ) , "abcd 4 efg" ) ;
202
197
t ! ( format!( "{:.a$} {a} {a:#x}" , "aaaaaa" , a=2 ) , "aa 2 0x2" ) ;
203
198
204
-
205
199
// Test that pointers don't get truncated.
206
200
{
207
201
let val = usize:: MAX ;
0 commit comments