mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 20:47:46 +00:00
Merge pull request #2292 from Gilnaa/2121-factor-clap
Moved factor to use clap
This commit is contained in:
commit
0746b3e1e6
4 changed files with 34 additions and 16 deletions
|
@ -39,6 +39,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