1
Fork 0
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:
palaviv 2016-06-11 15:46:41 +03:00
parent e87407f598
commit d4ffbe0526
4 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,4 @@
1
2
3
4

View file

@ -0,0 +1,7 @@
4
2
4
3
3
2
1

View file

@ -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);