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

12 lines
223 B
Rust
Raw Normal View History

use nu_test_support::nu;
2020-12-08 18:43:46 +01:00
#[test]
fn generates_chars_of_specified_length() {
let actual = nu!(r#"
2020-12-08 18:43:46 +01:00
random chars -l 15 | size | get chars
"#);
2020-12-08 18:43:46 +01:00
let result = actual.out;
assert_eq!(result, "15");
}