add simple value iteration

This commit is contained in:
JT
2021-09-06 16:16:32 +12:00
parent 96b0edf9b0
commit 3b99ce71a0
2 changed files with 21 additions and 1 deletions

View File

@@ -223,3 +223,8 @@ fn range_iteration1() -> TestResult {
fn range_iteration2() -> TestResult {
run_test("4..1 | each { |y| $y + 100 }", "[104, 103, 102, 101]")
}
#[test]
fn simple_value_iteration() -> TestResult {
run_test("4 | each { $it + 10 }", "14")
}