mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
factor: correctly handle repeated flag
This commit is contained in:
parent
dcb53b6c99
commit
388021833e
2 changed files with 10 additions and 0 deletions
|
@ -30,6 +30,15 @@ fn test_valid_arg_exponents() {
|
|||
new_ucmd!().arg("--exponents").succeeds().code_is(0);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_repeated_exponents() {
|
||||
new_ucmd!()
|
||||
.args(&["-hh", "1234", "10240"])
|
||||
.succeeds()
|
||||
.stdout_only("1234: 2 617\n10240: 2^11 5\n")
|
||||
.no_stderr();
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(feature = "sort")]
|
||||
#[cfg(not(target_os = "android"))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue