diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-04-06 10:24:01 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-04-12 00:13:53 +0200 |
| commit | d4ed1e6fa4978141408ef01d0d35c7bd142dd164 (patch) | |
| tree | 4943e332478a1658581eb8872ff7be92b1d1b499 /src/liballoc/tests | |
| parent | 0d9afcd9b9f881545c8b722855f7e39361495d27 (diff) | |
| download | rust-d4ed1e6fa4978141408ef01d0d35c7bd142dd164.tar.gz rust-d4ed1e6fa4978141408ef01d0d35c7bd142dd164.zip | |
Merge unstable Utf16Encoder into EncodeUtf16
Diffstat (limited to 'src/liballoc/tests')
| -rw-r--r-- | src/liballoc/tests/str.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/liballoc/tests/str.rs b/src/liballoc/tests/str.rs index 2df8ca63a3e..a3f4c385fe2 100644 --- a/src/liballoc/tests/str.rs +++ b/src/liballoc/tests/str.rs @@ -1204,8 +1204,7 @@ fn test_rev_split_char_iterator_no_trailing() { #[test] fn test_utf16_code_units() { - use core::unicode::Utf16Encoder; - assert_eq!(Utf16Encoder::new(vec!['é', '\u{1F4A9}'].into_iter()).collect::<Vec<u16>>(), + assert_eq!("é\u{1F4A9}".encode_utf16().collect::<Vec<u16>>(), [0xE9, 0xD83D, 0xDCA9]) } |
