(self)
| 1349 | """Lambda expressions (array comprehensions).""" |
| 1350 | |
| 1351 | def test_lambda_single(self): |
| 1352 | x = Int("x") |
| 1353 | lam = Lambda(x, x * 2) |
| 1354 | assert isinstance(lam._ast, LambdaNode) |
| 1355 | assert lam._ast.name == "x" |
| 1356 | |
| 1357 | def test_lambda_multi(self): |
| 1358 | x, y = Ints("x y") |