Fix handling of unicode in compare tests.
This commit is contained in:
@@ -1457,7 +1457,7 @@ fn compare_plain_text<'s>(
|
||||
.as_atom()?
|
||||
.parse()?;
|
||||
let emacs_text_length = end_ind - start_ind;
|
||||
if rust_source.len() != emacs_text_length {
|
||||
if rust_source.chars().count() != emacs_text_length {
|
||||
this_status = DiffStatus::Bad;
|
||||
message = Some(format!(
|
||||
"(emacs len != rust len) {:?} != {:?}",
|
||||
|
||||
Reference in New Issue
Block a user