fix string in from_utf8_lossy_100_multibyte benchmark

This commit is contained in:
Ted Horst 2014-07-21 00:43:08 -05:00 committed by Alex Crichton
parent 6807349e8f
commit dfacef532d

View File

@ -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);