Add an experimental record iteration

This commit is contained in:
JT
2021-09-08 10:00:20 +12:00
parent ab3820890b
commit 6dd9f05ea1
3 changed files with 59 additions and 4 deletions

View File

@ -287,3 +287,8 @@ fn row_iteration() -> TestResult {
"[800, 1600]",
)
}
#[test]
fn record_iteration() -> TestResult {
run_test("([[name, level]; [aa, 100], [bb, 200]] | each { $it | each { |x| if $x.column == \"level\" { $x.value + 100 } else { $x.value } } }).level", "[200, 300]")
}