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

Method test_val_constructors

tests/test_z3_compat.py:346–350  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

344 assert any(name == "n" for name, _ in n._vars)
345
346 def test_val_constructors(self):
347 assert isinstance(IntVal(42)._ast, IntLit) and IntVal(42)._ast.val == 42
348 assert isinstance(NatVal(7)._ast, NatLit) and NatVal(7)._ast.val == 7
349 assert isinstance(BoolVal(True)._ast, BoolLit) and BoolVal(True)._ast.val is True
350 assert isinstance(BoolVal(False)._ast, BoolLit) and BoolVal(False)._ast.val is False
351
352
353class TestCompilation:

Callers

nothing calls this directly

Calls 3

IntValFunction · 0.90
NatValFunction · 0.90
BoolValFunction · 0.90

Tested by

no test coverage detected