mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Fix reject regression (#14931)
This PR solves the regression introduced by #14622 (sorry about that). It also adds a test to cover the regression. Closes #14929.
This commit is contained in:
@ -178,3 +178,10 @@ fn test_ignore_errors_flag_var() {
|
||||
nu!("let arg = [5 c]; [[a, b]; [1, 2], [3, 4], [5, 6]] | reject ...$arg -i | to nuon");
|
||||
assert_eq!(actual.out, "[[a, b]; [1, 2], [3, 4], [5, 6]]");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_works_with_integer_path_and_stream() {
|
||||
let actual = nu!("[[N u s h e l l]] | flatten | reject 1 | to nuon");
|
||||
|
||||
assert_eq!(actual.out, "[N, s, h, e, l, l]");
|
||||
}
|
||||
|
Reference in New Issue
Block a user