Add random chars cmd (#2782)

This commit is contained in:
Chris Gillespie
2020-12-08 09:43:46 -08:00
committed by GitHub
parent 9c7b25134b
commit af2f064f42
7 changed files with 117 additions and 1 deletions

View File

@ -0,0 +1,14 @@
use nu_test_support::{nu, pipeline};
#[test]
fn generates_chars_of_specified_length() {
let actual = nu!(
cwd: ".", pipeline(
r#"
random chars -l 15 | size | get chars
"#
));
let result = actual.out;
assert_eq!(result, "15");
}

View File

@ -1,4 +1,5 @@
mod bool;
mod chars;
mod decimal;
mod dice;
mod integer;