diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-01-30 14:10:53 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-03 09:32:34 -0800 |
| commit | 209642c65177d6cf42dd4eea693040aa91cde9ee (patch) | |
| tree | b9c7c1c2382c978a53b6dd3f1c6c6fccb116cf0a /src/libstd/io/stdio.rs | |
| parent | 29e7247fd8be5a9879ebcd1a3ddc47e2fa743abd (diff) | |
| download | rust-209642c65177d6cf42dd4eea693040aa91cde9ee.tar.gz rust-209642c65177d6cf42dd4eea693040aa91cde9ee.zip | |
std: Fix tests with io_error usage
Diffstat (limited to 'src/libstd/io/stdio.rs')
| -rw-r--r-- | src/libstd/io/stdio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index bdf013233c0..702ecfb6031 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -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")); }) } |
