From 19c21d47662201fdd40a1a5653bdc003b3a8e15d Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Mon, 9 Jun 2014 13:23:44 +0000 Subject: QPID-5804: Fix broken selector parsing of unary '+' git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1601372 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/Selector.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qpid/cpp/src/tests') diff --git a/qpid/cpp/src/tests/Selector.cpp b/qpid/cpp/src/tests/Selector.cpp index 59bdd36b77..30c69c68af 100644 --- a/qpid/cpp/src/tests/Selector.cpp +++ b/qpid/cpp/src/tests/Selector.cpp @@ -303,6 +303,8 @@ QPID_AUTO_TEST_CASE(parseString) BOOST_CHECK_NO_THROW(qb::Selector e("(354.6)")); BOOST_CHECK_NO_THROW(qb::Selector e("A is null and 'hello out there'")); BOOST_CHECK_NO_THROW(qb::Selector e("17/4>4")); + BOOST_CHECK_NO_THROW(qb::Selector e("17/4>+4")); + BOOST_CHECK_NO_THROW(qb::Selector e("17/4>-4")); BOOST_CHECK_NO_THROW(qb::Selector e("A IN ('hello', 'there', 1 , true, (1-17))")); } -- cgit v1.2.1