mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
sort: unique option support
This commit is contained in:
parent
e87407f598
commit
d4ffbe0526
4 changed files with 25 additions and 1 deletions
4
tests/fixtures/sort/numeric_unsorted_ints_unique.expected
vendored
Normal file
4
tests/fixtures/sort/numeric_unsorted_ints_unique.expected
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
1
|
||||
2
|
||||
3
|
||||
4
|
7
tests/fixtures/sort/numeric_unsorted_ints_unique.txt
vendored
Normal file
7
tests/fixtures/sort/numeric_unsorted_ints_unique.txt
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
4
|
||||
2
|
||||
4
|
||||
3
|
||||
3
|
||||
2
|
||||
1
|
|
@ -42,6 +42,11 @@ fn test_default_unsorted_ints() {
|
|||
test_helper("default_unsorted_ints", "");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_numeric_unique_ints() {
|
||||
test_helper("numeric_unsorted_ints_unique", "-nu");
|
||||
}
|
||||
|
||||
fn test_helper(file_name: &str, args: &str) {
|
||||
let (at, mut ucmd) = testing(UTIL_NAME);
|
||||
ucmd.arg(args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue