summaryrefslogtreecommitdiff
path: root/python/test/Ice/scope/AllTests.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-07-30 12:45:29 +0200
committerJose <jose@zeroc.com>2019-07-31 13:13:40 +0200
commit3e71d9e1a29bc8169452b039bb723406ff8ef0fe (patch)
treecfde39529b1a21d6f4c4e87b2a92a366eafc9993 /python/test/Ice/scope/AllTests.py
parentUpdate .npmignore to ignore .tgz files (diff)
downloadice-3e71d9e1a29bc8169452b039bb723406ff8ef0fe.tar.bz2
ice-3e71d9e1a29bc8169452b039bb723406ff8ef0fe.tar.xz
ice-3e71d9e1a29bc8169452b039bb723406ff8ef0fe.zip
Fixes for C++ & Swift generated code - Close #458
Diffstat (limited to 'python/test/Ice/scope/AllTests.py')
-rw-r--r--python/test/Ice/scope/AllTests.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/python/test/Ice/scope/AllTests.py b/python/test/Ice/scope/AllTests.py
index d57d6fd85d4..d60e19cd945 100644
--- a/python/test/Ice/scope/AllTests.py
+++ b/python/test/Ice/scope/AllTests.py
@@ -11,7 +11,7 @@ def test(b):
def allTests(helper, communicator):
- sys.stdout.write("test same Slice type name in different scopes... ")
+ sys.stdout.write("test using same type name in different Slice modules... ")
sys.stdout.flush()
i1 = Test.IPrx.checkedCast(communicator.stringToProxy("i1:{0}".format(helper.getTestEndpoint())))
@@ -52,6 +52,15 @@ def allTests(helper, communicator):
test(cmap2["a"].s == s1)
test(cmap3["a"].s == s1)
+ e = i1.opE1(Test.E1.v1)
+ test(e == Test.E1.v1)
+
+ s = i1.opS1(Test.S1("S1"))
+ test(s.s == "S1")
+
+ c = i1.opC1(Test.C1("C1"))
+ test(c.s == "C1")
+
i2 = Test.Inner.Inner2.IPrx.checkedCast(communicator.stringToProxy("i2:{0}".format(helper.getTestEndpoint())))
s1 = Test.Inner.Inner2.S(0)