Skip to content

Commit

Permalink
update doctest
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Dec 18, 2018
1 parent 35e8dec commit a63d1b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/api/python/z3/z3.py
Original file line number Diff line number Diff line change
Expand Up @@ -3836,7 +3836,7 @@ def Extract(high, low, a):
>>> Extract(6, 2, x).sort()
BitVec(5)
>>> simplify(Extract(StringVal("abcd"),2,1))
"c"
c
"""
if isinstance(high, str):
high = StringVal(high)
Expand Down Expand Up @@ -9995,8 +9995,6 @@ def Strings(names, ctx=None):
def Empty(s):
"""Create the empty sequence of the given sort
>>> e = Empty(StringSort())
>>> print(e)
""
>>> e2 = StringVal("")
>>> print(e.eq(e2))
True
Expand Down Expand Up @@ -10082,7 +10080,7 @@ def Replace(s, src, dst):
"""Replace the first occurrence of 'src' by 'dst' in 's'
>>> r = Replace("aaa", "a", "b")
>>> simplify(r)
"baa"
baa
"""
ctx = _get_ctx2(dst, s)
if ctx is None and is_expr(src):
Expand Down

0 comments on commit a63d1b1

Please sign in to comment.