diff options
Diffstat (limited to 'test/XPath')
-rw-r--r-- | test/XPath/docs/ns | 2 | ||||
-rw-r--r-- | test/XPath/docs/str | 2 | ||||
-rw-r--r-- | test/XPath/expr/base | 10 | ||||
-rw-r--r-- | test/XPath/expr/floats | 2 | ||||
-rw-r--r-- | test/XPath/expr/functions | 17 | ||||
-rw-r--r-- | test/XPath/expr/strings | 2 | ||||
-rw-r--r-- | test/XPath/tests/chaptersbase | 3 | ||||
-rw-r--r-- | test/XPath/tests/nssimple | 2 | ||||
-rw-r--r-- | test/XPath/tests/simplebase | 1 | ||||
-rw-r--r-- | test/XPath/tests/strbase | 1 |
10 files changed, 42 insertions, 0 deletions
diff --git a/test/XPath/docs/ns b/test/XPath/docs/ns index 88f45756..2338a6fe 100644 --- a/test/XPath/docs/ns +++ b/test/XPath/docs/ns @@ -1,3 +1,5 @@ <doc xmlns:ns1="nsuri1"> + <preceding/> <elem xmlns:ns2="nsuri2"/> + <following/> </doc> diff --git a/test/XPath/docs/str b/test/XPath/docs/str index 547e54de..449de015 100644 --- a/test/XPath/docs/str +++ b/test/XPath/docs/str @@ -6,4 +6,6 @@ <p><p>a span</p>n<p>ing one</p></p> <p><p>and an unbal</p><empty/>anced test</p> <p>for empty string <seq>123</seq></p> + <p id="1">a<b>b</b>c</p> + <p id="2"><!--X-->abc</p> </chapter> diff --git a/test/XPath/expr/base b/test/XPath/expr/base index f57e4d0c..cc187356 100644 --- a/test/XPath/expr/base +++ b/test/XPath/expr/base @@ -4,4 +4,14 @@ 1+2*3+4 (1+2)*(3+4) 1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1+1*1 +0.000000000000000000000000000000000000000000000000001 +-0.000000000000000000000000000000000000000000000000001 +1e2147483648 +1e4294967296 +1e9223372036854775808 +1e18446744073709551616 +1e-2147483649 +1e-4294967296 +1e-9223372036854775809 +1e-18446744073709551616 self::-name diff --git a/test/XPath/expr/floats b/test/XPath/expr/floats index 96c10d15..b4475240 100644 --- a/test/XPath/expr/floats +++ b/test/XPath/expr/floats @@ -59,3 +59,5 @@ number('f') div 1 -5 mod 2 -5 mod -2 8 mod 3 = 2 +12345678901234567890 +-12345678901234567890 diff --git a/test/XPath/expr/functions b/test/XPath/expr/functions index d168b189..00b9461f 100644 --- a/test/XPath/expr/functions +++ b/test/XPath/expr/functions @@ -9,12 +9,22 @@ floor(-0) floor(0) floor(5.2) floor(-5.2) +floor(100000000000000000000) +floor(-100000000000000000000) +floor(0 div 0) +floor(1 div 0) +floor(-1 div 0) ceiling(0.1) ceiling(-0.1) ceiling(-0) ceiling(0) ceiling(5.2) ceiling(-5.2) +ceiling(100000000000000000000) +ceiling(-100000000000000000000) +ceiling(0 div 0) +ceiling(1 div 0) +ceiling(-1 div 0) round(0.1) round(5.2) round(5.5) @@ -23,3 +33,10 @@ round(-0.1) round(-5.2) round(-5.5) round(-5.6) +round(0.5) +round(-0.5) +round(100000000000000000000) +round(-100000000000000000000) +round(0 div 0) +round(1 div 0) +round(-1 div 0) diff --git a/test/XPath/expr/strings b/test/XPath/expr/strings index 849ca14c..ba02c794 100644 --- a/test/XPath/expr/strings +++ b/test/XPath/expr/strings @@ -3,6 +3,8 @@ string(0.5) string(-0.5) string(true()) string(false()) +string(12345678901234567890) +string(-12345678901234567890) concat("titi","toto") concat("titi","toto","tata") concat("titi",'toto') diff --git a/test/XPath/tests/chaptersbase b/test/XPath/tests/chaptersbase index 17638f73..f8fbe2a8 100644 --- a/test/XPath/tests/chaptersbase +++ b/test/XPath/tests/chaptersbase @@ -8,3 +8,6 @@ /descendant::title /descendant::p/ancestor::chapter //p[1] +//p[0 div 0] +//p[100000000000000000000] +//p[-100000000000000000000] diff --git a/test/XPath/tests/nssimple b/test/XPath/tests/nssimple index d2a95281..8b343a30 100644 --- a/test/XPath/tests/nssimple +++ b/test/XPath/tests/nssimple @@ -1,3 +1,5 @@ /doc/elem/namespace::node()/.. /doc/elem/namespace::*/self::node()[true()] //*[namespace::ns1] +/doc/elem/namespace::ns2/following::* +/doc/elem/namespace::ns2/preceding::* diff --git a/test/XPath/tests/simplebase b/test/XPath/tests/simplebase index 8b2c7d15..7b302af2 100644 --- a/test/XPath/tests/simplebase +++ b/test/XPath/tests/simplebase @@ -13,3 +13,4 @@ /child::EXAMPLE/attribute::prop1/ancestor-or-self::* /descendant::title /descendant::p/ancestor::chapter +/child::EXAMPLE/attribute::prop2/preceding::text() diff --git a/test/XPath/tests/strbase b/test/XPath/tests/strbase new file mode 100644 index 00000000..b8183253 --- /dev/null +++ b/test/XPath/tests/strbase @@ -0,0 +1 @@ +//p[.='abc'] |