add search test on chinese scripts
@@ -597,7 +597,7 @@ mod tests {
let mut m = Vec::new();
m.push(MatchPosition {
- start: 510,
+ start: 529,
length: 9,
});
matches.insert("description".to_string(), m);
@@ -613,6 +613,7 @@ mod tests {
assert_eq!(result, result_expected);
}
+
#[test]
fn highlight_longest_match() {
let data = r#"{
