Switch stdin redirect to manual. Add test (#1367)

This commit is contained in:
Jonathan Turner
2020-02-09 22:55:07 -08:00
committed by GitHub
parent a2668e3327
commit dc50e61f26
5 changed files with 113 additions and 42 deletions

View File

@ -91,6 +91,19 @@ mod external_words {
}
}
mod nu_commands {
use super::nu;
#[test]
fn echo_internally_externally() {
let actual = nu!(cwd: ".", r#"
nu -c "echo 'foo'"
"#);
assert_eq!(actual, "foo");
}
}
mod tilde_expansion {
use super::nu;