summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/Selector.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2014-07-03 20:25:24 +0000
committerAndrew Stitcher <astitcher@apache.org>2014-07-03 20:25:24 +0000
commitb5b5670d078966443c04f60f64e9b39ad6630cb5 (patch)
tree36ddc7370817f07ed164a1c765c1549cc8decf31 /qpid/cpp/src/tests/Selector.cpp
parent4d44af1d101c17c234b1cb3304373e915ac74b66 (diff)
downloadqpid-python-b5b5670d078966443c04f60f64e9b39ad6630cb5.tar.gz
QPID-5806: Allow quoted syntax for non standard selector identifiers
- This matches the Java broker syntax for selectors git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1607738 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/Selector.cpp')
-rw-r--r--qpid/cpp/src/tests/Selector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/Selector.cpp b/qpid/cpp/src/tests/Selector.cpp
index 951f124d3a..23c192bc63 100644
--- a/qpid/cpp/src/tests/Selector.cpp
+++ b/qpid/cpp/src/tests/Selector.cpp
@@ -152,7 +152,8 @@ QPID_AUTO_TEST_CASE(tokeniseSuccess)
{
verifyTokeniserSuccess(&tokenise, "", qb::T_EOS, "", "");
verifyTokeniserSuccess(&tokenise, "null_123+blah", qb::T_IDENTIFIER, "null_123", "+blah");
- verifyTokeniserSuccess(&tokenise, "null_123+blah", qb::T_IDENTIFIER, "null_123", "+blah");
+ verifyTokeniserSuccess(&tokenise, "\"null-123\"+blah", qb::T_IDENTIFIER, "null-123", "+blah");
+ verifyTokeniserSuccess(&tokenise, "\"This is an \"\"odd!\"\" identifier\"+blah", qb::T_IDENTIFIER, "This is an \"odd!\" identifier", "+blah");
verifyTokeniserSuccess(&tokenise, "null+blah", qb::T_NULL, "null", "+blah");
verifyTokeniserSuccess(&tokenise, "null+blah", qb::T_NULL, "null", "+blah");
verifyTokeniserSuccess(&tokenise, "Is nOt null", qb::T_IS, "Is", " nOt null");