add search test on chinese scripts

This commit is contained in:
many 2020-12-17 15:13:58 +01:00
parent 748a8240dd
commit 0447594e02
No known key found for this signature in database
GPG key ID: 2CEF23B75189EACA
3 changed files with 69 additions and 8 deletions

View file

@ -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#"{