mirror of
https://github.com/nushell/nushell
synced 2024-12-30 15:03:25 +00:00
14 lines
261 B
Rust
14 lines
261 B
Rust
|
use nu_test_support::{nu, pipeline};
|
||
|
|
||
|
#[test]
|
||
|
fn continue_for_loop() {
|
||
|
let actual = nu!(
|
||
|
cwd: ".", pipeline(
|
||
|
r#"
|
||
|
for i in 1..10 { if $i == 2 { continue }; print $i }
|
||
|
"#
|
||
|
));
|
||
|
|
||
|
assert_eq!(actual.out, r#"1345678910"#);
|
||
|
}
|