mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 05:18:27 +02:00
Merge branch 'main' into no_export_env
This commit is contained in:
@ -107,3 +107,16 @@ fn reject_table_from_raw_eval() {
|
||||
|
||||
assert!(actual.out.contains("record 0 fields"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn reject_nested_field() {
|
||||
let actual = nu!(
|
||||
cwd: ".", pipeline(
|
||||
r#"
|
||||
{a:{b:3,c:5}} | reject a.b | debug
|
||||
"#
|
||||
)
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, "{a: {c: 5}}");
|
||||
}
|
||||
|
Reference in New Issue
Block a user