summaryrefslogtreecommitdiff
path: root/tests/test_xpath_parse.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-08 16:15:05 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-08 16:15:05 +0000
commitf02208b12f774c2c32a0ba7d92bfb8a7b527169e (patch)
treebc81bac7a48cfc80dbbf0c166f8306aa674c8aea /tests/test_xpath_parse.cpp
parentc1b2ecc79902ea89bb9a0296f2d3ddcb7591800a (diff)
tests: Final coverage improvements
git-svn-id: http://pugixml.googlecode.com/svn/trunk@229 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_xpath_parse.cpp')
-rw-r--r--tests/test_xpath_parse.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_xpath_parse.cpp b/tests/test_xpath_parse.cpp
index 38032ea..8eee552 100644
--- a/tests/test_xpath_parse.cpp
+++ b/tests/test_xpath_parse.cpp
@@ -48,6 +48,7 @@ TEST(xpath_empty_expression)
TEST(xpath_lexer_error)
{
CHECK_XPATH_FAIL("!");
+ CHECK_XPATH_FAIL("&");
}
TEST(xpath_unmatched_braces)
@@ -65,6 +66,12 @@ TEST(xpath_incorrect_step)
{
CHECK_XPATH_FAIL("child::1");
CHECK_XPATH_FAIL("something::*");
+ CHECK_XPATH_FAIL("a::*");
+ CHECK_XPATH_FAIL("c::*");
+ CHECK_XPATH_FAIL("d::*");
+ CHECK_XPATH_FAIL("f::*");
+ CHECK_XPATH_FAIL("n::*");
+ CHECK_XPATH_FAIL("p::*");
}
TEST(xpath_semantics_error)