diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-23 03:21:02 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-23 03:21:02 +0530 |
| commit | f81933d240a07c9e9954359d8d0103ddf0b4af1d (patch) | |
| tree | 415bc62a280606200f4b4992acd8ceb793afbc9d | |
| parent | bd8101d698cc0f599ff10f9b5550716502bb1e91 (diff) | |
| parent | bf1310389ed2f2bbff529929e1606b59c8a20dfa (diff) | |
| download | rust-f81933d240a07c9e9954359d8d0103ddf0b4af1d.tar.gz rust-f81933d240a07c9e9954359d8d0103ddf0b4af1d.zip | |
Rollup merge of #24688 - SimonSapin:fmt-write-char, r=alexcrichton
… added in #24661.
| -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 7ae1347f2c7..240b6286c8c 100644 --- a/src/test/run-pass/ifmt.rs +++ b/src/test/run-pass/ifmt.rs @@ -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 |
