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

Method test_simplify_identity

tests/test_z3_ported.py:445–449  ·  view source on GitHub ↗

Guide: simplify(x + 1 + 2)

(self)

Source from the content-addressed store, hash-verified

443 assert isinstance(expr._ast, BinOpNode)
444
445 def test_simplify_identity(self):
446 """Guide: simplify(x + 1 + 2)"""
447 x = Int("x")
448 result = simplify(x + 1 + 2)
449 assert isinstance(result, ExprRef)
450
451 def test_simplify_returns_same_type(self):
452 """simplify preserves expression type."""

Callers

nothing calls this directly

Calls 2

IntFunction · 0.90
simplifyFunction · 0.90

Tested by

no test coverage detected