aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/overload_complicated_runme.py
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-10-08 15:48:26 -0700
committerHaibo Huang <hhb@google.com>2019-11-14 22:14:23 +0000
commit80b4251e302efb18c145a4786249d695397ed42a (patch)
tree12b9dec2513f7caa92e7835bc17ab16ae5635df6 /Examples/test-suite/python/overload_complicated_runme.py
parent189852d8cdfd5863c52ec7aa73affd926c5a3f43 (diff)
parent1e36f51346d95f8b9848e682c2eb986e9cb9b4f4 (diff)
downloadswig-80b4251e302efb18c145a4786249d695397ed42a.tar.gz
Upgrade swig to 'rel-4.0.1'llvm-r383902b
Also run autogen.sh to generate configure files. Exempt-From-Owner-Approval: add myself to owners Change-Id: I391aa20428836ae74dab8c8427627ca4dbc8ecf4
Diffstat (limited to 'Examples/test-suite/python/overload_complicated_runme.py')
-rw-r--r--Examples/test-suite/python/overload_complicated_runme.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Examples/test-suite/python/overload_complicated_runme.py b/Examples/test-suite/python/overload_complicated_runme.py
index 9c039a0a5..2593c4f16 100644
--- a/Examples/test-suite/python/overload_complicated_runme.py
+++ b/Examples/test-suite/python/overload_complicated_runme.py
@@ -5,11 +5,11 @@ pInt = None
# Check the correct constructors are available
p = Pop(pInt)
-p = Pop(pInt, 0)
+p = Pop(pInt, False)
# Check overloaded in const only and pointers/references which target
# languages cannot disambiguate
-if p.hip(0) != 701:
+if p.hip(False) != 701:
raise RuntimeError, "Test 1 failed"
if p.hip(pInt) != 702:
@@ -19,14 +19,14 @@ if p.hip(pInt) != 702:
if p.hop(pInt) != 805:
raise RuntimeError, "Test 3 failed"
-if p.hop(0) != 801:
+if p.hop(False) != 801:
raise RuntimeError, "Test 4 failed"
# Few more variations and order shuffled
-if p.pop(0) != 901:
+if p.pop(False) != 901:
raise RuntimeError, "Test 5 failed"
-if p.pop(pInt) != 902:
+if p.pop(pInt) != 904:
raise RuntimeError, "Test 6 failed"
if p.pop() != 905:
@@ -36,11 +36,11 @@ if p.pop() != 905:
if p.bop(pInt) != 1001:
raise RuntimeError, "Test 8 failed"
-if p.bip(pInt) != 2001:
+if p.bip(pInt) != 2002:
raise RuntimeError, "Test 9 failed"
# Globals
-if muzak(0) != 3001:
+if muzak(False) != 3001:
raise RuntimeError, "Test 10 failed"
if muzak(pInt) != 3002: