mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
fix --help and --version
This commit is contained in:
parent
f2b952db54
commit
f0aa68aa1e
2 changed files with 12 additions and 2 deletions
|
@ -1,6 +1,16 @@
|
|||
use common::util::*;
|
||||
|
||||
|
||||
#[test]
|
||||
fn test_env_help() {
|
||||
assert!(new_ucmd!().arg("--help").succeeds().no_stderr().stdout.contains("Options:"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_env_version() {
|
||||
assert!(new_ucmd!().arg("--version").succeeds().no_stderr().stdout.contains(util_name!()));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_single_name_value_pair() {
|
||||
let out = new_ucmd!()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue