Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BasisResearch/lean.py
/ test_if_then_else
Method
test_if_then_else
tests/test_z3_compat.py:317–320 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
315
assert len(d._ast.args) == 3
316
317
def
test_if_then_else(self):
318
x = Int(
"x"
)
319
expr = If(x > 0, x, -x)
320
assert isinstance(expr._ast, IteNode)
321
322
def
test_int_coercion(self):
323
x = Int(
"x"
)
Callers
nothing calls this directly
Calls
2
Int
Function · 0.90
If
Function · 0.90
Tested by
no test coverage detected