mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests/sort: add tests for month sort
This commit is contained in:
parent
2cdccb10bb
commit
55c0b1786f
3 changed files with 19 additions and 0 deletions
7
tests/fixtures/sort/month1.ans
vendored
Normal file
7
tests/fixtures/sort/month1.ans
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
N/A Ut enim ad minim veniam, quis
|
||||||
|
Jan Lorem ipsum dolor sit amet
|
||||||
|
mar laboris nisi ut aliquip ex ea
|
||||||
|
May sed do eiusmod tempor incididunt
|
||||||
|
JUN nostrud exercitation ullamco
|
||||||
|
Oct ut labore et dolore magna aliqua
|
||||||
|
Dec consectetur adipiscing elit
|
7
tests/fixtures/sort/month1.txt
vendored
Normal file
7
tests/fixtures/sort/month1.txt
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
Jan Lorem ipsum dolor sit amet
|
||||||
|
Dec consectetur adipiscing elit
|
||||||
|
May sed do eiusmod tempor incididunt
|
||||||
|
Oct ut labore et dolore magna aliqua
|
||||||
|
N/A Ut enim ad minim veniam, quis
|
||||||
|
JUN nostrud exercitation ullamco
|
||||||
|
mar laboris nisi ut aliquip ex ea
|
|
@ -41,6 +41,11 @@ fn human1() {
|
||||||
test_helper(&String::from("human1"), &String::from("-H"));
|
test_helper(&String::from("human1"), &String::from("-H"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn month1() {
|
||||||
|
test_helper(&String::from("month1"), &String::from("-M"));
|
||||||
|
}
|
||||||
|
|
||||||
fn numeric_helper(test_num: isize) {
|
fn numeric_helper(test_num: isize) {
|
||||||
test_helper(&format!("numeric{}", test_num), &String::from("-n"))
|
test_helper(&format!("numeric{}", test_num), &String::from("-n"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue