mirror of
https://github.com/nushell/nushell
synced 2025-01-03 16:58:58 +00:00
11 lines
232 B
Rust
11 lines
232 B
Rust
use nu_test_support::nu;
|
|
|
|
#[test]
|
|
fn with_env_extends_environment() {
|
|
let actual = nu!(
|
|
cwd: "tests/fixtures/formats",
|
|
"with-env [FOO BARRRR] {echo $nu.env} | get FOO"
|
|
);
|
|
|
|
assert_eq!(actual, "BARRRR");
|
|
}
|