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

Method test_app_children

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

Source from the content-addressed store, hash-verified

2955 assert e.decl().name() == "or"
2956
2957 def test_app_children(self):
2958 f = Function("f", IntSort(), IntSort(), IntSort())
2959 x, y = Ints("x y")
2960 e = f(x, y)
2961 assert is_app(e)
2962 assert e.num_args() == 2
2963 assert e.decl().name() == "f"
2964
2965 def test_select_children(self):
2966 a = Array("a", IntSort(), IntSort())

Callers

nothing calls this directly

Calls 7

FunctionFunction · 0.90
IntSortFunction · 0.90
IntsFunction · 0.90
is_appFunction · 0.90
declMethod · 0.80
num_argsMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected