nu-command 0.90.1

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

#[test]
fn print_to_stdout() {
    let actual = nu!("print 'hello world'");
    assert!(actual.out.contains("hello world"));
    assert!(actual.err.is_empty());
}

#[test]
fn print_to_stderr() {
    let actual = nu!("print -e 'hello world'");
    assert!(actual.out.is_empty());
    assert!(actual.err.contains("hello world"));
}