Skip to content

Commit

Permalink
Add a test for std::fmt::Write::write_char
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Apr 22, 2015
1 parent 16181e6 commit bf13103
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/run-pass/ifmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,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 bf13103

Please sign in to comment.