mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
fix string in from_utf8_lossy_100_multibyte benchmark
This commit is contained in:
parent
6807349e8f
commit
dfacef532d
@ -856,8 +856,7 @@ mod tests {
|
||||
|
||||
#[bench]
|
||||
fn from_utf8_lossy_100_multibyte(b: &mut Bencher) {
|
||||
let s = "ðŒ€ðŒ–ðŒ‹ðŒ„ðŒ‘ðŒ‰à¸›à¸£Ø¯ÙˆÙ„Ø©\
|
||||
الكويتทศไทยä¸åŽð…ðŒ¿ðŒ»ð†ðŒ¹ðŒ»ðŒ°".as_bytes();
|
||||
let s = "𐌀𐌖𐌋𐌄𐌑𐌉ปรدولة الكويتทศไทย中华𐍅𐌿𐌻𐍆𐌹𐌻𐌰".as_bytes();
|
||||
assert_eq!(100, s.len());
|
||||
b.iter(|| {
|
||||
let _ = String::from_utf8_lossy(s);
|
||||
|
Loading…
Reference in New Issue
Block a user