]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/send_str_treemap.rs
test: Remove all uses of `~str` from the test suite.
[rust.git] / src / test / run-pass / send_str_treemap.rs
index e4a935eae7f431af3ebd99082bdc74d9ca9a266b..b6dcf06cae04fb4866e553076e5844be3cd39e8a 100644 (file)
@@ -61,8 +61,8 @@ pub fn main() {
     assert_eq!(map.find(&Owned("def".to_owned())), Some(&d));
 
     assert!(map.pop(&Slice("foo")).is_some());
-    assert_eq!(map.move_iter().map(|(k, v)| k.to_str() + v.to_str())
-                              .collect::<Vec<~str>>()
+    assert_eq!(map.move_iter().map(|(k, v)| format_strbuf!("{}{}", k, v))
+                              .collect::<Vec<StrBuf>>()
                               .concat(),
                "abc50bcd51cde52def53".to_owned());
 }