auto merge of #8942 : novalis/rust/fmt, r=alexcrichton

This commit is contained in:
bors 2013-09-03 20:56:19 -07:00
commit 523701aad0
2 changed files with 13 additions and 0 deletions

View file

@ -213,6 +213,12 @@ pub fn main() {
t!(format!("{:+10.3f}", 1.0f), " +1.000");
t!(format!("{:+10.3f}", -1.0f), " -1.000");
// Escaping
t!(format!("\\{"), "{");
t!(format!("\\}"), "}");
t!(format!("\\#"), "#");
t!(format!("\\\\"), "\\");
test_write();
test_print();