mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Simplify the code
This commit is contained in:
parent
70c497ef3d
commit
e132dd67eb
1 changed files with 4 additions and 5 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue