diff --git a/test/rpc/xmlrpc_test.cc b/test/rpc/xmlrpc_test.cc index 51120a11..7ca22657 100644 --- a/test/rpc/xmlrpc_test.cc +++ b/test/rpc/xmlrpc_test.cc @@ -69,7 +69,7 @@ XmlrpcTest::test_invalid_utf8() { // valid UTF-8, but doesn't check strings, and Object strings are // just a series of bytes so it reflects just fine. std::string input = "xmlrpc_reflect\xc3\x28"; - std::string expected = "\xc3\x28"; + std::string expected = "\xc3\x28"; std::string output; m_xmlrpc.process(input.c_str(), input.size(), [&output](const char* c, uint32_t l){ output.append(c, l); return true;}); CPPUNIT_ASSERT_EQUAL(expected, output); diff --git a/test/rpc/xmlrpc_test_data.txt b/test/rpc/xmlrpc_test_data.txt index c7adb105..bab15b23 100644 --- a/test/rpc/xmlrpc_test_data.txt +++ b/test/rpc/xmlrpc_test_data.txt @@ -1,50 +1,51 @@ # Basic call xmlrpc_reflect - + # Basic call without params xmlrpc_reflect - + # UTF-8 string xmlrpc_reflectчао -чао +чао # emoji string xmlrpc_reflect😊 -😊 +😊 # base64 data (which gets returned as a string) xmlrpc_reflectZm9vYmFy -foobar +foobar # i8 ints xmlrpc_reflect41 -41 +41 # i8 ints xmlrpc_reflect2247483647 -2247483647 +2247483647 # negative i8 ints xmlrpc_reflect-2347483647 --2347483647 - -# Empty array -xmlrpc_reflect2247483647 -2247483647 +-2347483647 # Simple array +xmlrpc_reflect2247483647 +2247483647 + +# Empty array xmlrpc_reflect - + # Empty struct xmlrpc_reflect - + # Simple struct + xmlrpc_reflectlowerBound18upperBound139 -lowerBound18upperBound139 +lowerBound18upperBound139 # Invalid - missing method no_such_method41