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

Method test_substring

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

Source from the content-addressed store, hash-verified

793 assert _try_prove(IntToStr(IntVal(42)) == StringVal("42"))
794
795 def test_substring(self, kernel):
796 assert _try_prove(SubString(StringVal("abcdef"), IntVal(2), IntVal(3)) == StringVal("cde"))
797
798
799class TestStringUniversal:

Callers

nothing calls this directly

Calls 4

_try_proveFunction · 0.90
SubStringFunction · 0.90
StringValFunction · 0.90
IntValFunction · 0.90

Tested by

no test coverage detected