Skip to content

Commit aa89325

Browse files
author
blake2-ppc
committed
std: Add from_bytes test for utf-8 using codepoints above 0xffff
1 parent b4ff955 commit aa89325

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libstd/str.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2825,7 +2825,10 @@ mod tests {
28252825
0x20_u8, 0x4e_u8, 0x61_u8,
28262826
0x6d_u8];
28272827
2828+
28282829
assert_eq!(ss, from_bytes(bb));
2830+
assert_eq!(~"𐌀𐌖𐌋𐌄𐌑𐌉ปรدولة الكويتทศไทย中华𐍅𐌿𐌻𐍆𐌹𐌻𐌰",
2831+
from_bytes(bytes!("𐌀𐌖𐌋𐌄𐌑𐌉ปรدولة الكويتทศไทย中华𐍅𐌿𐌻𐍆𐌹𐌻𐌰")));
28292832
}
28302833
28312834
#[test]

0 commit comments

Comments
 (0)