1
0
mirror of https://github.com/nushell/nushell.git synced 2025-03-23 20:26:45 +01:00
nushell/crates/nu-command/tests/commands/print.rs

16 lines
356 B
Rust
Raw Normal View History

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"));
}