mirror of
https://github.com/nushell/nushell.git
synced 2025-08-16 02:28:36 +02:00
Fix the for loop to create vars
This commit is contained in:
@ -553,3 +553,8 @@ fn split_column() -> TestResult {
|
||||
"hello",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn for_loops() -> TestResult {
|
||||
run_test(r#"(for x in [1, 2, 3] { $x + 10 }).1"#, "12")
|
||||
}
|
||||
|
Reference in New Issue
Block a user