diff options
Diffstat (limited to 'result/XPath')
-rw-r--r-- | result/XPath/expr/base | 40 | ||||
-rw-r--r-- | result/XPath/expr/floats | 8 | ||||
-rw-r--r-- | result/XPath/expr/functions | 68 | ||||
-rw-r--r-- | result/XPath/expr/strings | 8 | ||||
-rw-r--r-- | result/XPath/tests/chaptersbase | 15 | ||||
-rw-r--r-- | result/XPath/tests/nssimple | 18 | ||||
-rw-r--r-- | result/XPath/tests/simplebase | 5 | ||||
-rw-r--r-- | result/XPath/tests/strbase | 13 | ||||
-rw-r--r-- | result/XPath/xptr/vidbase | 13 |
9 files changed, 186 insertions, 2 deletions
diff --git a/result/XPath/expr/base b/result/XPath/expr/base index e04346fa..57c93cf8 100644 --- a/result/XPath/expr/base +++ b/result/XPath/expr/base @@ -24,5 +24,45 @@ Expression: 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+ Object is a number : 21 ======================== +Expression: 0.000000000000000000000000000000000000000000000000001 +Object is a number : 1e-51 + +======================== +Expression: -0.000000000000000000000000000000000000000000000000001 +Object is a number : -1e-51 + +======================== +Expression: 1e2147483648 +Object is a number : Infinity + +======================== +Expression: 1e4294967296 +Object is a number : Infinity + +======================== +Expression: 1e9223372036854775808 +Object is a number : Infinity + +======================== +Expression: 1e18446744073709551616 +Object is a number : Infinity + +======================== +Expression: 1e-2147483649 +Object is a number : 0 + +======================== +Expression: 1e-4294967296 +Object is a number : 0 + +======================== +Expression: 1e-9223372036854775809 +Object is a number : 0 + +======================== +Expression: 1e-18446744073709551616 +Object is a number : 0 + +======================== Expression: self::-name Object is empty (NULL) diff --git a/result/XPath/expr/floats b/result/XPath/expr/floats index b6255ce0..157bd767 100644 --- a/result/XPath/expr/floats +++ b/result/XPath/expr/floats @@ -242,3 +242,11 @@ Object is a number : -1 ======================== Expression: 8 mod 3 = 2 Object is a Boolean : true + +======================== +Expression: 12345678901234567890 +Object is a number : 1.23457e+19 + +======================== +Expression: -12345678901234567890 +Object is a number : -1.23457e+19 diff --git a/result/XPath/expr/functions b/result/XPath/expr/functions index 10cc27ef..e09eb4a4 100644 --- a/result/XPath/expr/functions +++ b/result/XPath/expr/functions @@ -44,6 +44,26 @@ Expression: floor(-5.2) Object is a number : -6 ======================== +Expression: floor(100000000000000000000) +Object is a number : 1e+20 + +======================== +Expression: floor(-100000000000000000000) +Object is a number : -1e+20 + +======================== +Expression: floor(0 div 0) +Object is a number : NaN + +======================== +Expression: floor(1 div 0) +Object is a number : Infinity + +======================== +Expression: floor(-1 div 0) +Object is a number : -Infinity + +======================== Expression: ceiling(0.1) Object is a number : 1 @@ -68,6 +88,26 @@ Expression: ceiling(-5.2) Object is a number : -5 ======================== +Expression: ceiling(100000000000000000000) +Object is a number : 1e+20 + +======================== +Expression: ceiling(-100000000000000000000) +Object is a number : -1e+20 + +======================== +Expression: ceiling(0 div 0) +Object is a number : NaN + +======================== +Expression: ceiling(1 div 0) +Object is a number : Infinity + +======================== +Expression: ceiling(-1 div 0) +Object is a number : -Infinity + +======================== Expression: round(0.1) Object is a number : 0 @@ -98,3 +138,31 @@ Object is a number : -5 ======================== Expression: round(-5.6) Object is a number : -6 + +======================== +Expression: round(0.5) +Object is a number : 1 + +======================== +Expression: round(-0.5) +Object is a number : 0 + +======================== +Expression: round(100000000000000000000) +Object is a number : 1e+20 + +======================== +Expression: round(-100000000000000000000) +Object is a number : -1e+20 + +======================== +Expression: round(0 div 0) +Object is a number : NaN + +======================== +Expression: round(1 div 0) +Object is a number : Infinity + +======================== +Expression: round(-1 div 0) +Object is a number : -Infinity diff --git a/result/XPath/expr/strings b/result/XPath/expr/strings index fad7048f..1ae5cc40 100644 --- a/result/XPath/expr/strings +++ b/result/XPath/expr/strings @@ -20,6 +20,14 @@ Expression: string(false()) Object is a string : false ======================== +Expression: string(12345678901234567890) +Object is a string : 1.23456789012346e+19 + +======================== +Expression: string(-12345678901234567890) +Object is a string : -1.23456789012346e+19 + +======================== Expression: concat("titi","toto") Object is a string : tititoto diff --git a/result/XPath/tests/chaptersbase b/result/XPath/tests/chaptersbase index e023bf01..fd021d8a 100644 --- a/result/XPath/tests/chaptersbase +++ b/result/XPath/tests/chaptersbase @@ -123,3 +123,18 @@ Set contains 5 nodes: 3 ELEMENT p 4 ELEMENT p 5 ELEMENT p + +======================== +Expression: //p[0 div 0] +Object is a Node Set : +Set contains 0 nodes: + +======================== +Expression: //p[100000000000000000000] +Object is a Node Set : +Set contains 0 nodes: + +======================== +Expression: //p[-100000000000000000000] +Object is a Node Set : +Set contains 0 nodes: diff --git a/result/XPath/tests/nssimple b/result/XPath/tests/nssimple index 8f0dd0e3..cd09a177 100644 --- a/result/XPath/tests/nssimple +++ b/result/XPath/tests/nssimple @@ -17,8 +17,22 @@ Set contains 3 nodes: ======================== Expression: //*[namespace::ns1] Object is a Node Set : -Set contains 2 nodes: +Set contains 4 nodes: 1 ELEMENT doc namespace ns1 href=nsuri1 -2 ELEMENT elem +2 ELEMENT preceding +3 ELEMENT elem namespace ns2 href=nsuri2 +4 ELEMENT following + +======================== +Expression: /doc/elem/namespace::ns2/following::* +Object is a Node Set : +Set contains 1 nodes: +1 ELEMENT following + +======================== +Expression: /doc/elem/namespace::ns2/preceding::* +Object is a Node Set : +Set contains 1 nodes: +1 ELEMENT preceding diff --git a/result/XPath/tests/simplebase b/result/XPath/tests/simplebase index 3c32d17e..6d4b347e 100644 --- a/result/XPath/tests/simplebase +++ b/result/XPath/tests/simplebase @@ -125,3 +125,8 @@ Expression: /descendant::p/ancestor::chapter Object is a Node Set : Set contains 1 nodes: 1 ELEMENT chapter + +======================== +Expression: /child::EXAMPLE/attribute::prop2/preceding::text() +Object is a Node Set : +Set contains 0 nodes: diff --git a/result/XPath/tests/strbase b/result/XPath/tests/strbase new file mode 100644 index 00000000..e6035cae --- /dev/null +++ b/result/XPath/tests/strbase @@ -0,0 +1,13 @@ + +======================== +Expression: //p[.='abc'] +Object is a Node Set : +Set contains 2 nodes: +1 ELEMENT p + ATTRIBUTE id + TEXT + content=1 +2 ELEMENT p + ATTRIBUTE id + TEXT + content=2 diff --git a/result/XPath/xptr/vidbase b/result/XPath/xptr/vidbase index 8b9e92d6..f19193e7 100644 --- a/result/XPath/xptr/vidbase +++ b/result/XPath/xptr/vidbase @@ -17,3 +17,16 @@ Object is a Location Set: To node ELEMENT p + +======================== +Expression: xpointer(range-to(id('chapter2'))) +Object is a Location Set: +1 : Object is a range : + From node + / + To node + ELEMENT chapter + ATTRIBUTE id + TEXT + content=chapter2 + |