forked from extern/nushell
Convert 'for' to a statement (#7086)
This commit is contained in:
@ -83,6 +83,18 @@ fn argument_subexpression() {
|
||||
assert_eq!(actual.out, "foo");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn for_loop() {
|
||||
let actual = nu!(
|
||||
cwd: ".",
|
||||
r#"
|
||||
for i in 1..3 { print $i }
|
||||
"#
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, "123");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn subexpression_handles_dot() {
|
||||
Playground::setup("subexpression_handles_dot", |dirs, sandbox| {
|
||||
|
Reference in New Issue
Block a user