summaryrefslogtreecommitdiff
path: root/tests/test_xpath_parse.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-29 15:41:16 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-08-29 15:41:16 +0000
commit771c8ecc2f242a7dd8f45ebd91fd253ba37a2a65 (patch)
tree7a8a68e1ea855949583dab66ea25b3df45d15944 /tests/test_xpath_parse.cpp
parent59e034149fd3fd95c14a19e4e5588f4861131cbb (diff)
tests: Added more XPath tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@683 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_xpath_parse.cpp')
-rw-r--r--tests/test_xpath_parse.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_xpath_parse.cpp b/tests/test_xpath_parse.cpp
index f996b24..aa148be 100644
--- a/tests/test_xpath_parse.cpp
+++ b/tests/test_xpath_parse.cpp
@@ -291,4 +291,15 @@ TEST(xpath_parse_out_of_memory_string_to_number)
CHECK_XPATH_FAIL(STR("0.11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111"));
}
+TEST(xpath_parse_qname_error)
+{
+ CHECK_XPATH_FAIL(STR("foo: bar"));
+ CHECK_XPATH_FAIL(STR("foo :bar"));
+ CHECK_XPATH_FAIL(STR("foo: *"));
+ CHECK_XPATH_FAIL(STR("foo :*"));
+ CHECK_XPATH_FAIL(STR(":*"));
+ CHECK_XPATH_FAIL(STR(":bar"));
+ CHECK_XPATH_FAIL(STR(":"));
+}
+
#endif