nu-command 0.27.1

CLI for nushell
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use nu_test_support::{nu, pipeline};

#[test]
fn generates_a_bool() {
    let actual = nu!(
        cwd: ".", pipeline(
        r#"
        random bool
        "#
    ));

    let output = actual.out;
    let is_boolean_output = output == "true" || output == "false";

    assert!(is_boolean_output);
}