diff options
author | Michi Henning <michi@zeroc.com> | 2002-07-12 06:59:46 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-07-12 06:59:46 +0000 |
commit | 7b0e3bcf59aeb06cab82db3e1e6f5cbe87a320da (patch) | |
tree | 61eb0a105e36e02ef586a15ec0225ce4499e581d /cpp/test/IceXML/encoding/Client.cpp | |
parent | Fixed a NullPointerException that would have occur when no locator was set (diff) | |
download | ice-7b0e3bcf59aeb06cab82db3e1e6f5cbe87a320da.tar.bz2 ice-7b0e3bcf59aeb06cab82db3e1e6f5cbe87a320da.tar.xz ice-7b0e3bcf59aeb06cab82db3e1e6f5cbe87a320da.zip |
Changed dictionaries to only allow key types that are integral types or
strings, or sequences and structs that only contain integral types or
strings.
Diffstat (limited to 'cpp/test/IceXML/encoding/Client.cpp')
-rw-r--r-- | cpp/test/IceXML/encoding/Client.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/cpp/test/IceXML/encoding/Client.cpp b/cpp/test/IceXML/encoding/Client.cpp index 6d3d41307c9..9b5b86633a6 100644 --- a/cpp/test/IceXML/encoding/Client.cpp +++ b/cpp/test/IceXML/encoding/Client.cpp @@ -212,49 +212,6 @@ TestStringStruct4Dict(const Ice::CommunicatorPtr& communicator) } void -TestStruct3Struct4Dict(const Ice::CommunicatorPtr& communicator) -{ - static const string element = "Test.Struct3Struct4Dict"; - Test::Struct3Struct4Dict dictin; - - Test::Struct3 s3in; - s3in.l = 20; - s3in.s2.s1.l = 10; - - Test::Struct4 s4in; - s4in.l = 30; - s4in.s3.l = 20; - s4in.s3.s2.s1.l = 10; - dictin[s3in] = s4in; - - s3in.l = 30; - s3in.s2.s1.l = 20; - - s4in.l = 40; - s4in.s3.l = 30; - s4in.s3.s2.s1.l = 20; - dictin[s3in] = s4in; - - ostringstream os; - os << header; - Ice::StreamPtr ostream = new IceXML::StreamI(communicator, os); - Test::Struct3Struct4DictHelper::ice_marshal(element, ostream, dictin); - os << footer; - - istringstream is(os.str()); - Ice::StreamPtr istream = new IceXML::StreamI(communicator, is); - Test::Struct3Struct4Dict dictout; - Test::Struct3Struct4DictHelper::ice_unmarshal(element, istream, dictout); - test(dictout.size() == dictin.size()); - for(Test::Struct3Struct4Dict::const_iterator p = dictin.begin(); p != dictin.end(); ++p) - { - Test::Struct3Struct4Dict::const_iterator q = dictout.find(p->first); - test(q != dictout.end()); - test(q->second == p->second); - } -} - -void TestColor(const Ice::CommunicatorPtr& communicator) { static const string element = "Test.Color"; @@ -528,7 +485,6 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) cout << "testing dictionaries... "; TestStringStruct4Dict(communicator); - TestStruct3Struct4Dict(communicator); cout << "ok" << endl; cout << "testing enumerations... "; |