nu-command 0.112.2

Nushell's built-in commands
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use nu_test_support::prelude::*;

#[test]
fn sets_stream_from_internal_command_as_binary() -> Result {
    let code = "seq 1 10 | to text | into binary | describe";
    test().run(code).expect_value_eq("binary (stream)")
}

#[test]
fn sets_stream_from_external_command_as_binary() -> Result {
    let code = "^nu --testbin cococo | into binary | describe";
    test()
        .add_nu_to_path()
        .run(code)
        .expect_value_eq("binary (stream)")
}