diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2015-04-22 08:52:18 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2015-04-22 08:52:18 +0200 |
| commit | bf1310389ed2f2bbff529929e1606b59c8a20dfa (patch) | |
| tree | 01ec9863609d0c28ececd1d5923ae1fd7d65b327 /src | |
| parent | 16181e686a0b03960887889e28ef5f636ceccd4d (diff) | |
| download | rust-bf1310389ed2f2bbff529929e1606b59c8a20dfa.tar.gz rust-bf1310389ed2f2bbff529929e1606b59c8a20dfa.zip | |
Add a test for std::fmt::Write::write_char
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-pass/ifmt.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/run-pass/ifmt.rs b/src/test/run-pass/ifmt.rs index ea9db9b1e1f..393a3967d96 100644 --- a/src/test/run-pass/ifmt.rs +++ b/src/test/run-pass/ifmt.rs @@ -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 |
