auto merge of #8942 : novalis/rust/fmt, r=alexcrichton
This commit is contained in:
commit
523701aad0
2 changed files with 13 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue