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

Method test_add

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

Source from the content-addressed store, hash-verified

3402 assert isinstance(o, Optimize)
3403
3404 def test_add(self):
3405 o = Optimize()
3406 x = Int("x")
3407 o.add(x > 0)
3408 assert len(o.assertions()) == 1
3409
3410 def test_maximize(self):
3411 o = Optimize()

Callers

nothing calls this directly

Calls 4

addMethod · 0.95
assertionsMethod · 0.95
OptimizeClass · 0.90
IntFunction · 0.90

Tested by

no test coverage detected