nu-command 0.90.1

Nushell's built-in commands
Documentation
1
2
3
4
5
6
7
8
9
10
11
use nu_test_support::nu;

#[test]
fn generates_chars_of_specified_length() {
    let actual = nu!(r#"
        random chars --length 15 | str stats | get chars
        "#);

    let result = actual.out;
    assert_eq!(result, "15");
}