mirror of
https://github.com/nushell/nushell
synced 2024-12-31 23:39:00 +00:00
12 lines
232 B
Rust
12 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");
|
||
|
}
|