about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-04-23 03:21:02 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-04-23 03:21:02 +0530
commitf81933d240a07c9e9954359d8d0103ddf0b4af1d (patch)
tree415bc62a280606200f4b4992acd8ceb793afbc9d
parentbd8101d698cc0f599ff10f9b5550716502bb1e91 (diff)
parentbf1310389ed2f2bbff529929e1606b59c8a20dfa (diff)
downloadrust-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.rs4
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