Simplify the code

This commit is contained in:
sxyazi 2024-05-26 22:00:58 +08:00
parent 70c497ef3d
commit e132dd67eb
No known key found for this signature in database

View file

@ -146,12 +146,12 @@ mod tests {
#[test]
fn test_natsort() {
let dates = vec!["1999-3-3", "1999-12-25", "2000-1-2", "2000-1-10", "2000-3-23"];
let fractions = vec![
let dates = ["1999-3-3", "1999-12-25", "2000-1-2", "2000-1-10", "2000-3-23"];
let fractions = [
"1.002.01", "1.002.03", "1.002.08", "1.009.02", "1.009.10", "1.009.20", "1.010.12",
"1.011.02",
];
let words = vec![
let words = [
"1-02",
"1-2",
"1-20",
@ -182,8 +182,7 @@ mod tests {
"x2-y7",
"x8-y8",
];
let translit = vec![
let translit = [
"1",
"Acorn",
"Ætt",