Fix the for loop to create vars

This commit is contained in:
JT
2021-10-10 05:10:46 +13:00
parent 9a3b0312d2
commit e4ce41ba15
6 changed files with 23 additions and 134 deletions

View File

@ -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")
}