summaryrefslogtreecommitdiff
path: root/cpp/test
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-03-08 18:27:54 +0100
committerJose <jose@zeroc.com>2016-03-08 18:27:54 +0100
commit0e7e446475ebb6cf3a9382d54f0a28c04fa6e776 (patch)
tree3370c718e1acab6fc5b7a9a3ffb2db01c56e46bf /cpp/test
parentrenaming man pages for icegriddb/icestormdb (diff)
downloadice-0e7e446475ebb6cf3a9382d54f0a28c04fa6e776.tar.bz2
ice-0e7e446475ebb6cf3a9382d54f0a28c04fa6e776.tar.xz
ice-0e7e446475ebb6cf3a9382d54f0a28c04fa6e776.zip
String literals Windows fixes
Diffstat (limited to 'cpp/test')
-rw-r--r--cpp/test/Ice/operations/Twoways.cpp50
1 files changed, 25 insertions, 25 deletions
diff --git a/cpp/test/Ice/operations/Twoways.cpp b/cpp/test/Ice/operations/Twoways.cpp
index fe400c27f27..54d2d2d439a 100644
--- a/cpp/test/Ice/operations/Twoways.cpp
+++ b/cpp/test/Ice/operations/Twoways.cpp
@@ -63,8 +63,8 @@ void
twoways(const Ice::CommunicatorPtr& communicator, const Test::MyClassPrx& p)
{
Test::StringS literals = p->opStringLiterals();
-
- test(Test::s0 == "\\" &&
+
+ test(Test::s0 == "\\" &&
Test::s0 == Test::sw0 &&
Test::s0 == literals[0] &&
Test::s0 == literals[11]);
@@ -78,8 +78,8 @@ twoways(const Ice::CommunicatorPtr& communicator, const Test::MyClassPrx& p)
Test::s2 == Test::sw2 &&
Test::s2 == literals[2] &&
Test::s2 == literals[13]);
-
- test(Test::s3 == "A21" &&
+
+ test(Test::s3 == "A21" &&
Test::s3 == Test::sw3 &&
Test::s3 == literals[3] &&
Test::s3 == literals[14]);
@@ -89,58 +89,58 @@ twoways(const Ice::CommunicatorPtr& communicator, const Test::MyClassPrx& p)
Test::s4 == literals[4] &&
Test::s4 == literals[15]);
- test(Test::s5 == "\u00FF" &&
+ test(Test::s5 == "\xc3\xbf" &&
Test::s5 == Test::sw5 &&
Test::s5 == literals[5] &&
Test::s5 == literals[16]);
-
- test(Test::s6 == "\u03FF" &&
+
+ test(Test::s6 == "\xcf\xbf" &&
Test::s6 == Test::sw6 &&
Test::s6 == literals[6] &&
Test::s6 == literals[17]);
-
- test(Test::s7 == "\u05F0" &&
+
+ test(Test::s7 == "\xd7\xb0" &&
Test::s7 == Test::sw7 &&
Test::s7 == literals[7] &&
Test::s7 == literals[18]);
-
- test(Test::s8 == "\U00010000" &&
+
+ test(Test::s8 == "\xf0\x90\x80\x80" &&
Test::s8 == Test::sw8 &&
Test::s8 == literals[8] &&
Test::s8 == literals[19]);
-
- test(Test::s9 == "\U0001F34C" &&
+
+ test(Test::s9 == "\xf0\x9f\x8d\x8c" &&
Test::s9 == Test::sw9 &&
Test::s9 == literals[9] &&
Test::s9 == literals[20]);
- test(Test::s10 == "\u0DA7" &&
+ test(Test::s10 == "\xe0\xb6\xa7" &&
Test::s10 == Test::sw10 &&
Test::s10 == literals[10] &&
Test::s10 == literals[21]);
-
+
test(Test::ss0 == "\'\"\?\\\a\b\f\n\r\t\v" &&
Test::ss0 == Test::ss1 &&
Test::ss0 == Test::ss2 &&
Test::ss0 == literals[22] &&
Test::ss0 == literals[23] &&
Test::ss0 == literals[24]);
-
+
test(Test::ss3 == "\\\\U\\u\\" &&
Test::ss3 == literals[25]);
-
+
test(Test::ss4 == "\\A\\" &&
Test::ss4 == literals[26]);
-
+
test(Test::ss5 == "\\u0041\\" &&
Test::ss5 == literals[27]);
-
- test(Test::su0 == Test::su1 &&
- Test::su0 == Test::su2 &&
- Test::su0 == literals[28] &&
- Test::su0 == literals[29] &&
- Test::su0 == literals[30]);
-
+
+ test(Test::su0 == Test::su1);
+ test(Test::su0 == Test::su2);
+ test(Test::su0 == literals[28]);
+ test(Test::su0 == literals[29]);
+ test(Test::su0 == literals[30]);
+
{
p->ice_ping();
}