nu-cmd-extra 0.113.0

Nushell's extra commands that are not part of the 1.0 api standard.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use nu_test_support::nu;

#[test]
fn byte_stream_into_bits() {
    let result = nu!("[0x[01] 0x[02 03]] | bytes collect | format bits");
    assert_eq!("00000001 00000010 00000011", result.out);
}

#[test]
fn byte_stream_into_bits_is_stream() {
    let result = nu!("[0x[01] 0x[02 03]] | bytes collect | format bits | describe");
    assert_eq!("string (stream)", result.out);
}