Fixed $in in where blocks (#6976)

This commit is contained in:
Leon
2022-11-10 08:05:15 +10:00
committed by GitHub
parent c600c1ebe7
commit 2c238aea6a
13 changed files with 103 additions and 1 deletions

View File

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