diff options
author | Jose <pepone@users.noreply.github.com> | 2021-01-08 23:44:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 23:44:50 +0100 |
commit | 4419db6dc600b41141c23ede1c6895cbc898e819 (patch) | |
tree | fbb5b3769febe09a7caeb9e709480401515ba684 /ruby | |
parent | Fix Bogus name for metrics Request Id field - Close #906 (diff) | |
download | ice-4419db6dc600b41141c23ede1c6895cbc898e819.tar.bz2 ice-4419db6dc600b41141c23ede1c6895cbc898e819.tar.xz ice-4419db6dc600b41141c23ede1c6895cbc898e819.zip |
Fix C# marshal/unmarshal of optional data members (#1232)
See #889
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/test/Ice/optional/AllTests.rb | 4 | ||||
-rw-r--r-- | ruby/test/Ice/optional/Test.ice | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ruby/test/Ice/optional/AllTests.rb b/ruby/test/Ice/optional/AllTests.rb index ddb12631447..4291e488e96 100644 --- a/ruby/test/Ice/optional/AllTests.rb +++ b/ruby/test/Ice/optional/AllTests.rb @@ -711,6 +711,8 @@ def allTests(helper, communicator) test(ex.o == Ice::Unset) test(ex.ss == Ice::Unset) test(ex.o2 == Ice::Unset) + test(ex.d1 == "d1") + test(ex.d2 == "d2") end begin @@ -721,6 +723,8 @@ def allTests(helper, communicator) test(ex.o.a == 53) test(ex.ss == "test") test(ex.o2 == ex.o) + test(ex.d1 == "d1") + test(ex.d2 == "d2") end begin diff --git a/ruby/test/Ice/optional/Test.ice b/ruby/test/Ice/optional/Test.ice index 393db524baa..7606afec7da 100644 --- a/ruby/test/Ice/optional/Test.ice +++ b/ruby/test/Ice/optional/Test.ice @@ -141,8 +141,10 @@ exception OptionalException exception DerivedException extends OptionalException { + string d1; optional(600) string ss = "test"; optional(601) OneOptional o2; + string d2; } exception RequiredException extends OptionalException |