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

Method test_ite_construction

tests/test_z3_ported.py:1054–1057  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1052 """From z3py guide: If(cond, then, else)."""
1053
1054 def test_ite_construction(self):
1055 x = Int("x")
1056 expr = If(x > 0, x, -x)
1057 assert isinstance(expr._ast, IteNode)
1058
1059 def test_ite_type_preservation(self):
1060 """If returns same sort as branches."""

Callers

nothing calls this directly

Calls 2

IntFunction · 0.90
IfFunction · 0.90

Tested by

no test coverage detected