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

Method test_replace

tests/test_z3_ported.py:1412–1415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1410 assert isinstance(SuffixOf(StringVal("suf"), s), ExprRef)
1411
1412 def test_replace(self):
1413 s = String("s")
1414 r = Replace(s, StringVal("old"), StringVal("new"))
1415 assert isinstance(r, StringRef)
1416
1417 def test_substring(self):
1418 s = String("s")

Callers

nothing calls this directly

Calls 3

StringFunction · 0.90
ReplaceFunction · 0.90
StringValFunction · 0.90

Tested by

no test coverage detected