nushell/crates/nu-command/tests/commands/continue_.rs

9 lines
182 B
Rust
Raw Normal View History

use nu_test_support::nu;
#[test]
fn continue_for_loop() {
let actual = nu!("for i in 1..10 { if $i == 2 { continue }; print $i }");
assert_eq!(actual.out, "1345678910");
}