mirror of
https://github.com/nushell/nushell.git
synced 2025-06-19 17:38:14 +02:00
Fix regression. skip-until 'skips' until condition is met.
This commit is contained in:
parent
94aac0e8dd
commit
96d58094cf
@ -100,8 +100,8 @@ impl WholeStreamCommand for SkipUntil {
|
|||||||
trace!("RESULT = {:?}", result);
|
trace!("RESULT = {:?}", result);
|
||||||
|
|
||||||
match result {
|
match result {
|
||||||
Ok(ref v) if v.is_true() => true,
|
Ok(ref v) if v.is_true() => false, // stop skipping
|
||||||
_ => false,
|
_ => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -12,20 +12,20 @@ fn condition_is_met() {
|
|||||||
--------------------------------------------------------------------
|
--------------------------------------------------------------------
|
||||||
Chicken Collection,29/04/2020,30/04/2020,31/04/2020,
|
Chicken Collection,29/04/2020,30/04/2020,31/04/2020,
|
||||||
Yellow Chickens,,,
|
Yellow Chickens,,,
|
||||||
Andrés,1,1,1
|
Andrés,0,0,1
|
||||||
Jonathan,1,1,1
|
Jonathan,0,0,1
|
||||||
Jason,1,1,1
|
Jason,0,0,1
|
||||||
Yehuda,1,1,1
|
Yehuda,0,0,1
|
||||||
Blue Chickens,,,
|
Blue Chickens,,,
|
||||||
Andrés,1,1,2
|
Andrés,0,0,1
|
||||||
Jonathan,1,1,2
|
Jonathan,0,0,1
|
||||||
Jason,1,1,2
|
Jason,0,0,1
|
||||||
Yehuda,1,1,2
|
Yehuda,0,0,2
|
||||||
Red Chickens,,,
|
Red Chickens,,,
|
||||||
Andrés,1,1,3
|
Andrés,0,0,1
|
||||||
Jonathan,1,1,3
|
Jonathan,0,0,1
|
||||||
Jason,1,1,3
|
Jason,0,0,1
|
||||||
Yehuda,1,1,3
|
Yehuda,0,0,3
|
||||||
"#,
|
"#,
|
||||||
)]);
|
)]);
|
||||||
|
|
||||||
@ -45,6 +45,6 @@ fn condition_is_met() {
|
|||||||
"#
|
"#
|
||||||
));
|
));
|
||||||
|
|
||||||
assert_eq!(actual.out, "12");
|
assert_eq!(actual.out, "6");
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user