std: Fix tests with io_error usage

This commit is contained in:
Alex Crichton
2014-01-30 14:10:53 -08:00
parent 29e7247fd8
commit 209642c651
21 changed files with 567 additions and 699 deletions

View File

@@ -358,7 +358,7 @@ mod tests {
set_stdout(~w as ~Writer);
println!("hello!");
});
assert_eq!(r.read_to_str(), ~"hello!\n");
assert_eq!(r.read_to_str().unwrap(), ~"hello!\n");
})
iotest!(fn capture_stderr() {
@@ -370,7 +370,7 @@ mod tests {
set_stderr(~w as ~Writer);
fail!("my special message");
});
let s = r.read_to_str();
let s = r.read_to_str().unwrap();
assert!(s.contains("my special message"));
})
}