| 1 | [ |
| 2 | { |
| 3 | "id": "0033-for-loops:001:increase1", |
| 4 | "expression": "for h in heights return h + 1", |
| 5 | "expected": [ |
| 6 | 11.0, |
| 7 | 21.0, |
| 8 | 31.0 |
| 9 | ], |
| 10 | "expected_type": "list", |
| 11 | "comparison": "exact", |
| 12 | "deviation": null, |
| 13 | "context": { |
| 14 | "heights": [ |
| 15 | 10.0, |
| 16 | 20.0, |
| 17 | 30.0 |
| 18 | ] |
| 19 | } |
| 20 | }, |
| 21 | { |
| 22 | "id": "0033-for-loops:002:areas", |
| 23 | "expression": "for h in heights, w in widths return h * w", |
| 24 | "expected": [ |
| 25 | 20.0, |
| 26 | 30.0, |
| 27 | 40.0, |
| 28 | 60.0, |
| 29 | 60.0, |
| 30 | 90.0 |
| 31 | ], |
| 32 | "expected_type": "list", |
| 33 | "comparison": "exact", |
| 34 | "deviation": null, |
| 35 | "context": { |
| 36 | "heights": [ |
| 37 | 10.0, |
| 38 | 20.0, |
| 39 | 30.0 |
| 40 | ], |
| 41 | "widths": [ |
| 42 | 2.0, |
| 43 | 3.0 |
| 44 | ] |
| 45 | } |
| 46 | }, |
| 47 | { |
| 48 | "id": "0033-for-loops:004:multiples", |
| 49 | "expression": "for x in [2, 3, 4, 5] return x * value", |
| 50 | "expected": [ |
| 51 | 20.0, |
| 52 | 30.0, |
| 53 | 40.0, |
| 54 | 50.0 |
| 55 | ], |
| 56 | "expected_type": "list", |
| 57 | "comparison": "exact", |
| 58 | "deviation": null, |
| 59 | "context": { |
| 60 | "value": 10.0 |
| 61 | } |
| 62 | } |
| 63 | ] |