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

Method test_binop_decl

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

Source from the content-addressed store, hash-verified

2859 assert repr(kids[1]) == "y"
2860
2861 def test_binop_decl(self):
2862 x, y = Ints("x y")
2863 e = x + y
2864 d = e.decl()
2865 assert isinstance(d, FuncDeclRef)
2866 assert d.name() == "add"
2867
2868 def test_comparison_decl(self):
2869 x, y = Ints("x y")

Callers

nothing calls this directly

Calls 3

IntsFunction · 0.90
declMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected