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

Method test_int_to_str

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

Source from the content-addressed store, hash-verified

790 assert _try_prove(StrToInt(StringVal("abc")) == IntVal(-1))
791
792 def test_int_to_str(self, kernel):
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"))

Callers

nothing calls this directly

Calls 4

_try_proveFunction · 0.90
IntToStrFunction · 0.90
IntValFunction · 0.90
StringValFunction · 0.90

Tested by

no test coverage detected