diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-30 20:44:15 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-30 20:44:15 +0000 |
commit | 555a184f4f8223141434db41429eb68f5f8fd916 (patch) | |
tree | 441480cc8c38f89eb60b082fa0c314c2f69a7d24 /tests/test_xpath_xalan_5.cpp | |
parent | 97a761615f6db3be5f87b258e5288c09d445942c (diff) |
Fixed XPath parsing (numbers of the form \d+\. are now parsed correctly, stray colon does not act as eof token)
git-svn-id: http://pugixml.googlecode.com/svn/trunk@476 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_xpath_xalan_5.cpp')
-rw-r--r-- | tests/test_xpath_xalan_5.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_xpath_xalan_5.cpp b/tests/test_xpath_xalan_5.cpp index c1e7b18..3a71bc2 100644 --- a/tests/test_xpath_xalan_5.cpp +++ b/tests/test_xpath_xalan_5.cpp @@ -68,8 +68,8 @@ TEST_XML(xpath_xalan_select_6, "<div div='20' div-5='12'>9</div>") CHECK_XPATH_NUMBER(doc, STR("(* - 4) div 2"), 2.5);
CHECK_XPATH_NUMBER(doc, STR("' 6 ' div 2"), 3);
CHECK_XPATH_NUMBER(doc, STR("' 6 '*div"), 54);
- // CHECK_XPATH_NUMBER(doc, STR("5.*."), 45); $$ should work
- // CHECK_XPATH_NUMBER(doc, STR("5.+."), 14); $$ should work
+ CHECK_XPATH_NUMBER(doc, STR("5.*."), 45);
+ CHECK_XPATH_NUMBER(doc, STR("5.+."), 14);
}
TEST_XML(xpath_xalan_select_7, "<doc div='20'><div>9</div><attribute>8</attribute></doc>")
@@ -235,7 +235,7 @@ TEST(xpath_xalan_error_namespace) CHECK_XPATH_FAIL(STR("namespace-uri(baz2:b,..)"));
CHECK_XPATH_FAIL(STR("name(a,b)"));
CHECK_XPATH_FAIL(STR(":foo"));
- // CHECK_XPATH_FAIL(STR("*:foo")); $$ should not compile
+ CHECK_XPATH_FAIL(STR("*:foo"));
}
TEST(xpath_xalan_error_position)
|