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

Method test_nat_var

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

Source from the content-addressed store, hash-verified

339 assert "S" in var_names
340
341 def test_nat_var(self):
342 n = Nat("n")
343 assert n.sort() == NatSort()
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

Callers

nothing calls this directly

Calls 3

NatFunction · 0.90
NatSortFunction · 0.90
sortMethod · 0.45

Tested by

no test coverage detected