mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 02:45:08 +02:00
Rust 1.85, edition=2024 (#15741)
This commit is contained in:
@ -129,7 +129,9 @@ fn reject_optional_row() {
|
||||
|
||||
#[test]
|
||||
fn reject_columns_with_list_spread() {
|
||||
let actual = nu!("let arg = [type size]; [[name type size];[Cargo.toml file 10mb] [Cargo.lock file 10mb] [src dir 100mb]] | reject ...$arg | to nuon");
|
||||
let actual = nu!(
|
||||
"let arg = [type size]; [[name type size];[Cargo.toml file 10mb] [Cargo.lock file 10mb] [src dir 100mb]] | reject ...$arg | to nuon"
|
||||
);
|
||||
assert_eq!(
|
||||
actual.out,
|
||||
r#"[[name]; ["Cargo.toml"], ["Cargo.lock"], [src]]"#
|
||||
@ -138,7 +140,9 @@ fn reject_columns_with_list_spread() {
|
||||
|
||||
#[test]
|
||||
fn reject_rows_with_list_spread() {
|
||||
let actual = nu!("let arg = [2 0]; [[name type size];[Cargo.toml file 10mb] [Cargo.lock file 10mb] [src dir 100mb]] | reject ...$arg | to nuon");
|
||||
let actual = nu!(
|
||||
"let arg = [2 0]; [[name type size];[Cargo.toml file 10mb] [Cargo.lock file 10mb] [src dir 100mb]] | reject ...$arg | to nuon"
|
||||
);
|
||||
assert_eq!(
|
||||
actual.out,
|
||||
r#"[[name, type, size]; ["Cargo.lock", file, 10000000b]]"#
|
||||
@ -147,7 +151,9 @@ fn reject_rows_with_list_spread() {
|
||||
|
||||
#[test]
|
||||
fn reject_mixed_with_list_spread() {
|
||||
let actual = nu!("let arg = [type 2]; [[name type size];[Cargp.toml file 10mb] [ Cargo.lock file 10mb] [src dir 100mb]] | reject ...$arg | to nuon");
|
||||
let actual = nu!(
|
||||
"let arg = [type 2]; [[name type size];[Cargp.toml file 10mb] [ Cargo.lock file 10mb] [src dir 100mb]] | reject ...$arg | to nuon"
|
||||
);
|
||||
assert_eq!(
|
||||
actual.out,
|
||||
r#"[[name, size]; ["Cargp.toml", 10000000b], ["Cargo.lock", 10000000b]]"#
|
||||
|
Reference in New Issue
Block a user