summaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-02-13 20:40:50 +0100
committerJose <jose@zeroc.com>2017-02-13 20:44:40 +0100
commitbd4c5f908f33362fb705ba466f381a23ca90d1bb (patch)
treef64301a7c59d1d6524485ead41998033cfc722d9 /ruby
parentUpdate Ice Builder for Gradle version to 1.4.0 (diff)
downloadice-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 'ruby')
-rw-r--r--ruby/test/Ice/optional/AllTests.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/ruby/test/Ice/optional/AllTests.rb b/ruby/test/Ice/optional/AllTests.rb
index 167eddc9f37..de9a0c4e9d3 100644
--- a/ruby/test/Ice/optional/AllTests.rb
+++ b/ruby/test/Ice/optional/AllTests.rb
@@ -72,6 +72,7 @@ def allTests(communicator)
test(mo1.bos == Ice::Unset)
+ ss = Test::SmallStruct.new()
fs = Test::FixedStruct.new(78)
vs = Test::VarStruct.new("hello")
mo1 = Test::MultiOptional.new(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)
puts "ok"