libstd: Remove ~str from all libstd modules except fmt and str.
This commit is contained in:
@@ -409,7 +409,7 @@ mod tests {
|
||||
set_stdout(box w);
|
||||
println!("hello!");
|
||||
});
|
||||
assert_eq!(r.read_to_str().unwrap(), "hello!\n".to_owned());
|
||||
assert_eq!(r.read_to_str().unwrap(), "hello!\n".to_strbuf());
|
||||
})
|
||||
|
||||
iotest!(fn capture_stderr() {
|
||||
@@ -422,6 +422,6 @@ mod tests {
|
||||
fail!("my special message");
|
||||
});
|
||||
let s = r.read_to_str().unwrap();
|
||||
assert!(s.contains("my special message"));
|
||||
assert!(s.as_slice().contains("my special message"));
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user