Add a test for std::fmt::Write::write_char
This commit is contained in:
parent
16181e686a
commit
bf1310389e
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue