summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/operations/Twoways.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/operations/Twoways.cpp')
-rw-r--r--cpp/test/Ice/operations/Twoways.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/cpp/test/Ice/operations/Twoways.cpp b/cpp/test/Ice/operations/Twoways.cpp
index eb736d8b18b..7fd78ad7a30 100644
--- a/cpp/test/Ice/operations/Twoways.cpp
+++ b/cpp/test/Ice/operations/Twoways.cpp
@@ -1641,4 +1641,40 @@ twoways(const Ice::CommunicatorPtr& communicator, const Test::MyClassPrx& p)
p->opIdempotent();
p->opNonmutating();
+
+ test(p->opByte1(0xFF) == 0xFF);
+ test(p->opShort1(0x7FFF) == 0x7FFF);
+ test(p->opInt1(0x7FFFFFFF) == 0x7FFFFFFF);
+ test(p->opLong1(0x7FFFFFFFFFFFFFFF) == 0x7FFFFFFFFFFFFFFF);
+ test(p->opFloat1(1.0) == 1.0);
+ test(p->opDouble1(1.0) == 1.0);
+ test(p->opString1("opString1") == "opString1");
+
+ Test::MyDerivedClassPrx d = Test::MyDerivedClassPrx::uncheckedCast(p);
+
+ Test::MyStruct1 s;
+ s.tesT = "Test::MyStruct1::s";
+ s.myClass = 0;
+ s.myStruct1 = "Test::MyStruct1::myStruct1";
+ s = d->opMyStruct1(s);
+ test(s.tesT == "Test::MyStruct1::s");
+ test(s.myClass == 0);
+ test(s.myStruct1 == "Test::MyStruct1::myStruct1");
+
+ Test::MyClass1Ptr c = new Test::MyClass1();
+ c->tesT = "Test::MyClass1::testT";
+ c->myClass = 0;
+ c->myClass1 = "Test::MyClass1::myClass1";
+ c = d->opMyClass1(c);
+ test(c->tesT == "Test::MyClass1::testT");
+ test(c->myClass == 0);
+ test(c->myClass1 == "Test::MyClass1::myClass1");
+
+ Test::StringS seq;
+ p->opStringS1(seq);
+
+ Test::ByteBoolD dict;
+ p->opByteBoolD1(dict);
+
+
}