Skip to content

Commit 944e38b

Browse files
committed
---
yaml --- r: 226053 b: refs/heads/stable c: c8aec53 h: refs/heads/master i: 226051: 05e245e v: v3
1 parent 7843c45 commit 944e38b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 9a6b611a07f58bfd0ac1a26d1b25274202356d4a
32+
refs/heads/stable: c8aec53db73182f453621c284131ef028d0ae064
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

branches/stable/src/libstd/io/error.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,16 @@ mod test {
292292
use error;
293293
use error::Error as error_Error;
294294
use fmt;
295+
use sys::os::error_string;
296+
297+
#[test]
298+
fn test_debug_error() {
299+
let code = 6;
300+
let msg = error_string(code);
301+
let err = Error { repr: super::Repr::Os(code) };
302+
let expected = format!("Error {{ repr: Os {{ code: {:?}, message: {:?} }} }}", code, msg);
303+
assert_eq!(format!("{:?}", err), expected);
304+
}
295305

296306
#[test]
297307
fn test_downcasting() {

0 commit comments

Comments
 (0)