Skip to content

Commit

Permalink
fix string in from_utf8_lossy_100_multibyte benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
tedhorst authored and alexcrichton committed Jul 21, 2014
1 parent 6807349 commit dfacef5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libcollections/string.rs
Expand Up @@ -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);
Expand Down

0 comments on commit dfacef5

Please sign in to comment.