forked from extern/nushell
Fixed $in in where
blocks (#6976)
This commit is contained in:
@ -83,3 +83,13 @@ fn early_exits_with_0_param_blocks() {
|
||||
|
||||
assert_eq!(actual.out, "1true");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unique_env_each_iteration() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats",
|
||||
"[1 2] | any { print ($env.PWD | str ends-with 'formats') | cd '/' | false } | to nuon"
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, "truetruefalse");
|
||||
}
|
||||
|
Reference in New Issue
Block a user