From db1e78fa9dfd10ba4eeb0daedd50d003ce3d9571 Mon Sep 17 00:00:00 2001 From: kannibalox Date: Fri, 6 Dec 2024 16:46:47 -0500 Subject: [PATCH] Update tests to fix typo --- test/rpc/xmlrpc_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/rpc/xmlrpc_test.cc b/test/rpc/xmlrpc_test.cc index f3a502a8..a5c2932d 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); @@ -78,7 +78,7 @@ XmlrpcTest::test_invalid_utf8() { void XmlrpcTest::test_size_limit() { std::string input = "xmlrpc_reflect\xc3\x28"; - std::string expected = "faultCode-509faultStringContent size exceeds maximum XML-RPC limit"; + std::string expected = "faultCode-509faultStringContent size exceeds maximum XML-RPC limit"; std::string output; m_xmlrpc.set_size_limit(1); m_xmlrpc.process(input.c_str(), input.size(), [&output](const char* c, uint32_t l){ output.append(c, l); return true;});