diff options
author | Michi Henning <michi@zeroc.com> | 2004-05-10 02:15:57 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-05-10 02:15:57 +0000 |
commit | a6a7f49b10372b9e4adf2ac2431b361c5638d156 (patch) | |
tree | 1b4e44d9ba7a0209a9faa35b35ce29bb8d4d0e4e /cpp/test/Ice/operations/Twoways.cpp | |
parent | Fixed VC6 build (diff) | |
download | ice-a6a7f49b10372b9e4adf2ac2431b361c5638d156.tar.bz2 ice-a6a7f49b10372b9e4adf2ac2431b361c5638d156.tar.xz ice-a6a7f49b10372b9e4adf2ac2431b361c5638d156.zip |
Merged changes from michi_pre_e3 branch
Diffstat (limited to 'cpp/test/Ice/operations/Twoways.cpp')
-rw-r--r-- | cpp/test/Ice/operations/Twoways.cpp | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/cpp/test/Ice/operations/Twoways.cpp b/cpp/test/Ice/operations/Twoways.cpp index be0c5d4e5cd..0dc881dbf6b 100644 --- a/cpp/test/Ice/operations/Twoways.cpp +++ b/cpp/test/Ice/operations/Twoways.cpp @@ -447,6 +447,63 @@ twoways(const Test::MyClassPrx& p) } { + Test::StringSSS sssi1; + sssi1.resize(2); + sssi1[0].resize(2); + sssi1[0][0].push_back("abc"); + sssi1[0][0].push_back("de"); + sssi1[0][1].push_back("xyz"); + sssi1[1].resize(1); + sssi1[1][0].push_back("hello"); + + Test::StringSSS sssi2; + sssi2.resize(3); + sssi2[0].resize(2); + sssi2[0][0].push_back(""); + sssi2[0][0].push_back(""); + sssi2[0][1].push_back("abcd"); + sssi2[1].resize(1); + sssi2[1][0].push_back(""); + + Test::StringSSS ssso; + Test::StringSSS rsso; + + rsso = p->opStringSSS(sssi1, sssi2, ssso); + test(ssso.size() == 5); + test(ssso[0].size() == 2); + test(ssso[0][0].size() == 2); + test(ssso[0][1].size() == 1); + test(ssso[1].size() == 1); + test(ssso[1][0].size() == 1); + test(ssso[2].size() == 2); + test(ssso[2][0].size() == 2); + test(ssso[2][1].size() == 1); + test(ssso[3].size() == 1); + test(ssso[3][0].size() == 1); + test(ssso[4].size() == 0); + test(ssso[0][0][0] == "abc"); + test(ssso[0][0][1] == "de"); + test(ssso[0][1][0] == "xyz"); + test(ssso[1][0][0] == "hello"); + test(ssso[2][0][0] == ""); + test(ssso[2][0][1] == ""); + test(ssso[2][1][0] == "abcd"); + test(ssso[3][0][0] == ""); + + test(rsso.size() == 3); + test(rsso[0].size() == 0); + test(rsso[1].size() == 1); + test(rsso[1][0].size() == 1); + test(rsso[2].size() == 2); + test(rsso[2][0].size() == 2); + test(rsso[2][1].size() == 1); + test(rsso[1][0][0] == ""); + test(rsso[2][0][0] == ""); + test(rsso[2][0][1] == ""); + test(rsso[2][1][0] == "abcd"); + } + + { Test::ByteBoolD di1; di1[10] = true; di1[100] = false; |