MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / test_lambda_single_var

Method test_lambda_single_var

tests/test_z3_compat.py:1089–1093  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1087
1088class TestLambda:
1089 def test_lambda_single_var(self):
1090 x = Int("x")
1091 lam = Lambda(x, x + 1)
1092 assert isinstance(lam._ast, LambdaNode)
1093 assert lam._ast.name == "x"
1094
1095 def test_lambda_multi_var(self):
1096 x, y = Ints("x y")

Callers

nothing calls this directly

Calls 2

IntFunction · 0.90
LambdaFunction · 0.90

Tested by

no test coverage detected