diff options
Diffstat (limited to 'tests/test_xpath_parse.cpp')
-rw-r--r-- | tests/test_xpath_parse.cpp | 11 |
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 |