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
+1 -2
View File
@@ -856,8 +856,7 @@ fn from_utf8_lossy_100_ascii(b: &mut Bencher) {
#[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);