summaryrefslogtreecommitdiff
path: root/cpp/src/tests/Address.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/tests/Address.cpp')
-rw-r--r--cpp/src/tests/Address.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/tests/Address.cpp b/cpp/src/tests/Address.cpp
index 319710ec24..f25a27d231 100644
--- a/cpp/src/tests/Address.cpp
+++ b/cpp/src/tests/Address.cpp
@@ -86,6 +86,13 @@ QPID_AUTO_TEST_CASE(testParseOptionsWithList)
BOOST_CHECK_EQUAL((uint16_t) 101, address.getOption("x").asInt64());
}
+QPID_AUTO_TEST_CASE(testParseQuotedNameAndSubject)
+{
+ Address address("'my topic with / in it'/'my subject with ; in it'");
+ BOOST_CHECK_EQUAL(std::string("my topic with / in it"), address.getName());
+ BOOST_CHECK_EQUAL(std::string("my subject with ; in it"), address.getSubject());
+}
+
QPID_AUTO_TEST_SUITE_END()
}}