diff options
author | Gordon Sim <gsim@apache.org> | 2009-11-16 16:33:06 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2009-11-16 16:33:06 +0000 |
commit | 9c3dda9cf4bc359e68587767dd2ab072cf4a1298 (patch) | |
tree | 612627db24b31e124a27ec6e6a2deb8cf8ee3b61 | |
parent | b7b3d1e4700112e0a49786843170f946ee64cf1d (diff) | |
download | qpid-python-9c3dda9cf4bc359e68587767dd2ab072cf4a1298.tar.gz |
Added extra test for quoating in name or subject parts of address.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@880836 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | cpp/src/tests/Address.cpp | 7 |
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() }} |