add more tests

This commit is contained in:
Tamo 2021-06-29 16:18:53 +02:00
parent 56fceb1928
commit be75e738b1
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -222,6 +222,22 @@ mod tests {
TestBytesToHighlight { query: "Båve", text: "Chiøt", length: "".len() }, TestBytesToHighlight { query: "Båve", text: "Chiøt", length: "".len() },
TestBytesToHighlight { query: "💪🙂🍤", text: "plouf", length: "💪🙂".len() }, TestBytesToHighlight { query: "💪🙂🍤", text: "plouf", length: "💪🙂".len() },
TestBytesToHighlight { query: "clôu¿i", text: "bloubi", length: "clôu".len() }, TestBytesToHighlight { query: "clôu¿i", text: "bloubi", length: "clôu".len() },
TestBytesToHighlight {
query: "Альфа", text: "Альфой", length: "Альфа".len()
},
TestBytesToHighlight {
query: "Go💼", text: "Go💼od luck.", length: "Go💼".len()
},
TestBytesToHighlight {
query: "Go💼od", text: "Go💼od luck.", length: "Go💼od".len()
},
TestBytesToHighlight {
query: "chäräcters",
text: "chäräcters",
length: "chäräcters".len(),
},
TestBytesToHighlight { query: "ch", text: "chäräcters", length: "ch".len() },
TestBytesToHighlight { query: "chär", text: "chäräcters", length: "chär".len() },
]; ];
for test in &tests { for test in &tests {