3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-11 13:40:52 +00:00

Fix pydoc doctest failures by updating expected output format

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-06-28 02:06:24 +00:00
parent d137c57b06
commit 0ba7b562d3

View file

@ -4249,7 +4249,7 @@ def Extract(high, low, a):
>>> # Sequence extraction examples
>>> s = StringVal("hello")
>>> Extract(s, 1, 3) # Extract 3 characters starting at position 1
Extract(StringVal("hello"), 1, 3)
str.substr("hello", 1, 3)
>>> simplify(Extract(StringVal("abcd"), 2, 1)) # Extract 1 character at position 2
"c"
>>> simplify(Extract(StringVal("abcd"), 0, 2)) # Extract first 2 characters
@ -11215,7 +11215,7 @@ def SubString(s, offset, length):
>>> s = StringVal("hello world")
>>> SubString(s, 6, 5) # Extract "world"
Extract(StringVal("hello world"), 6, 5)
str.substr("hello world", 6, 5)
>>> simplify(SubString(StringVal("hello"), 1, 3))
"ell"
"""
@ -11229,7 +11229,7 @@ def SubSeq(s, offset, length):
>>> s = StringVal("hello world")
>>> SubSeq(s, 0, 5) # Extract "hello"
Extract(StringVal("hello world"), 0, 5)
str.substr("hello world", 0, 5)
>>> simplify(SubSeq(StringVal("testing"), 2, 4))
"stin"
"""