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

Method test_length

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

Source from the content-addressed store, hash-verified

725 )
726
727 def test_length(self, kernel):
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))

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