forked from rust-lang/rust
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge
sys_common::bytestring
into os_str_bytes
- Loading branch information
Showing
5 changed files
with
28 additions
and
50 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ | |
mod tests; | ||
|
||
pub mod backtrace; | ||
pub mod bytestring; | ||
pub mod condvar; | ||
pub mod fs; | ||
pub mod io; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use super::*; | ||
|
||
#[test] | ||
fn slice_debug_output() { | ||
let input = Slice::from_u8_slice(b"\xF0hello,\tworld"); | ||
let expected = r#""\xF0hello,\tworld""#; | ||
let output = format!("{:?}", input); | ||
|
||
assert_eq!(output, expected); | ||
} |