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

Method test_solver_num_scopes

tests/test_z3_ported.py:2626–2634  ·  view source on GitHub ↗
(self, kernel)

Source from the content-addressed store, hash-verified

2624 s.set(timeout=1000) # no-op, should not raise
2625
2626 def test_solver_num_scopes(self, kernel):
2627 s = Solver()
2628 assert s.num_scopes() == 0
2629 s.push()
2630 assert s.num_scopes() == 1
2631 s.push()
2632 assert s.num_scopes() == 2
2633 s.pop()
2634 assert s.num_scopes() == 1
2635
2636 def test_solver_len(self, kernel):
2637 s = Solver()

Callers

nothing calls this directly

Calls 4

num_scopesMethod · 0.95
pushMethod · 0.95
popMethod · 0.95
SolverClass · 0.90

Tested by

no test coverage detected