=== modified file 'test/test_xpath_tree.cpp' --- old/test/test_xpath_tree.cpp 2013-04-24 03:48:30 +0000 +++ new/test/test_xpath_tree.cpp 2013-06-26 09:43:35 +0000 @@ -172,6 +172,24 @@ ASSERT_EQ(child_l1_, result.front()); } +TEST_F(TestTreeFixture, test_search_node_with_wildcard_and_property_with_quoting) +{ + child_l1_->AddProperty("greeting", "HelloWorld"); + xpathselect::NodeList result = xpathselect::SelectNodes(root_, "/Root//*[greeting=\"HelloWorld\"]"); + + ASSERT_EQ(1, result.size()); + ASSERT_EQ(child_l1_, result.front()); +} + +TEST_F(TestTreeFixture, test_search_node_with_wildcard_and_property_with_quoting_and_space) +{ + child_l1_->AddProperty("greeting", "Hello World"); + xpathselect::NodeList result = xpathselect::SelectNodes(root_, "/Root//*[greeting=\"Hello World\"]"); + + ASSERT_EQ(1, result.size()); + ASSERT_EQ(child_l1_, result.front()); +} + TEST_F(TestTreeFixture, test_wildcard) { xpathselect::NodeList result = xpathselect::SelectNodes(root_, "/Root/*");