mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
Add regression test for coreutils --list (#10858)
This commit is contained in:
@@ -235,3 +235,17 @@ fn test_musl_no_dynamic_deps() {
|
||||
stdout
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_sorted_utils() {
|
||||
let s = TestScenario::new("list_sorted");
|
||||
let out = String::from_utf8(
|
||||
std::process::Command::new(&s.bin_path)
|
||||
.arg("--list")
|
||||
.output()
|
||||
.unwrap()
|
||||
.stdout,
|
||||
)
|
||||
.unwrap();
|
||||
assert!(out.lines().filter(|s| !s.is_empty()).is_sorted());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user