nushell/crates/nu-command/tests/commands/random/chars.rs

15 lines
278 B
Rust
Raw Normal View History

2020-12-08 18:43:46 +01:00
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");
}