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

Method test_length_empty

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

Source from the content-addressed store, hash-verified

728 assert _try_prove(Length(StringVal("hello")) == IntVal(5))
729
730 def test_length_empty(self, kernel):
731 assert _try_prove(Length(StringVal("")) == IntVal(0))
732
733 def test_length_concat(self, kernel):
734 """len(a ++ b) = len(a) + len(b) for ground strings."""

Callers

nothing calls this directly

Calls 4

_try_proveFunction · 0.90
LengthFunction · 0.90
StringValFunction · 0.90
IntValFunction · 0.90

Tested by

no test coverage detected