Skip to content

Commit

Permalink
Rollup merge of #24688 - SimonSapin:fmt-write-char, r=alexcrichton
Browse files Browse the repository at this point in the history
… added in #24661.
  • Loading branch information
Manishearth committed Apr 22, 2015
2 parents bd8101d + bf13103 commit f81933d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/run-pass/ifmt.rs
Expand Up @@ -195,9 +195,11 @@ fn test_write() {
write!(w, "{}", "hello");
writeln!(w, "{}", "line");
writeln!(w, "{foo}", foo="bar");
w.write_char('☃');
w.write_str("str");
}

t!(buf, "34helloline\nbar\n");
t!(buf, "34helloline\nbar\n☃str");
}

// Just make sure that the macros are defined, there's not really a lot that we
Expand Down

0 comments on commit f81933d

Please sign in to comment.