diff options
author | Jose <jose@zeroc.com> | 2017-02-13 20:40:50 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-02-13 20:44:40 +0100 |
commit | bd4c5f908f33362fb705ba466f381a23ca90d1bb (patch) | |
tree | f64301a7c59d1d6524485ead41998033cfc722d9 /python/test/Ice | |
parent | Update Ice Builder for Gradle version to 1.4.0 (diff) | |
download | ice-bd4c5f908f33362fb705ba466f381a23ca90d1bb.tar.bz2 ice-bd4c5f908f33362fb705ba466f381a23ca90d1bb.tar.xz ice-bd4c5f908f33362fb705ba466f381a23ca90d1bb.zip |
Fixed (ICE-7276) - Comparing struct with Ice::Unset results in error in Ruby
Diffstat (limited to 'python/test/Ice')
-rw-r--r-- | python/test/Ice/optional/AllTests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/python/test/Ice/optional/AllTests.py b/python/test/Ice/optional/AllTests.py index e2c20f64783..b347c10fccc 100644 --- a/python/test/Ice/optional/AllTests.py +++ b/python/test/Ice/optional/AllTests.py @@ -72,6 +72,7 @@ def allTests(communicator): test(mo1.bos is Ice.Unset) + ss = Test.SmallStruct() fs = Test.FixedStruct(78) vs = Test.VarStruct("hello") mo1 = Test.MultiOptional(15, True, 19, 78, 99, 5.5, 1.0, "test", Test.MyEnum.MyEnumMember, \ @@ -116,6 +117,14 @@ def allTests(communicator): test(mo1.ioopd[5] == Test.OneOptionalPrx.uncheckedCast(communicator.stringToProxy("test"))) test(mo1.bos == [False, True, False]) + + # + # Test generated struct and classes compare with Ice.Unset + # + test(ss != Ice.Unset) + test(fs != Ice.Unset) + test(vs != Ice.Unset) + test(mo1 != Ice.Unset) print("ok") |