fix: empty cell in select (#7639)

This commit is contained in:
Access
2022-12-31 19:19:10 +08:00
committed by GitHub
parent 7aa2a57434
commit 9382dd6d55
2 changed files with 17 additions and 11 deletions

View File

@ -165,11 +165,11 @@ fn select_ignores_errors_succesfully1() {
let actual = nu!(
cwd: ".", pipeline(
r#"
[{a: 1, b: 2} {a: 3, b: 5} {a: 3}] | select -i b
"#
[{a: 1, b: 2} {a: 3, b: 5} {a: 3}] | select -i b | length
"#
));
assert!(actual.out.is_empty());
assert_eq!(actual.out, "3".to_string());
assert!(actual.err.is_empty());
}