Skip to content

Commit bf13103

Browse files
committed
Add a test for std::fmt::Write::write_char
1 parent 16181e6 commit bf13103

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/run-pass/ifmt.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,11 @@ fn test_write() {
196196
write!(w, "{}", "hello");
197197
writeln!(w, "{}", "line");
198198
writeln!(w, "{foo}", foo="bar");
199+
w.write_char('☃');
200+
w.write_str("str");
199201
}
200202

201-
t!(buf, "34helloline\nbar\n");
203+
t!(buf, "34helloline\nbar\n☃str");
202204
}
203205

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

0 commit comments

Comments
 (0)