mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Moved factor to use clap
Issue: https://github.com/uutils/coreutils/issues/2121
This commit is contained in:
parent
e4aa8ee159
commit
17b0939dee
4 changed files with 34 additions and 16 deletions
|
@ -40,6 +40,18 @@ fn test_first_100000_integers() {
|
|||
assert_eq!(hash_check, "4ed2d8403934fa1c76fe4b84c5d4b8850299c359");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_cli_args() {
|
||||
// Make sure that factor works with CLI arguments as well.
|
||||
new_ucmd!().args(&["3"]).succeeds().stdout_contains("3: 3");
|
||||
|
||||
new_ucmd!()
|
||||
.args(&["3", "6"])
|
||||
.succeeds()
|
||||
.stdout_contains("3: 3")
|
||||
.stdout_contains("6: 2 3");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_random() {
|
||||
use conv::prelude::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue