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

Method test_reset_clears

tests/test_z3_semantic.py:1100–1105  ·  view source on GitHub ↗
(self, kernel)

Source from the content-addressed store, hash-verified

1098 assert s.check() == sat # x == x
1099
1100 def test_reset_clears(self, kernel):
1101 s = Solver()
1102 s.add(BoolVal(False))
1103 assert s.check() == unsat
1104 s.reset()
1105 assert s.check() == sat
1106
1107 def test_distinct_two(self, kernel):
1108 x, y = Ints("x y")

Callers

nothing calls this directly

Calls 5

addMethod · 0.95
checkMethod · 0.95
resetMethod · 0.95
SolverClass · 0.90
BoolValFunction · 0.90

Tested by

no test coverage detected