mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-23 01:52:48 +03:00
* test/XPath/expr/floats test/XPath/expr/functions result/XPath/expr/floats result/XPath/expr/functions xpath.c: another XPath conformance patch from Richard Jinks Daniel
101 lines
1.8 KiB
Plaintext
101 lines
1.8 KiB
Plaintext
|
|
========================
|
|
Expression: true()
|
|
Object is a Boolean : true
|
|
|
|
========================
|
|
Expression: false()
|
|
Object is a Boolean : false
|
|
|
|
========================
|
|
Expression: number("1.5")
|
|
Object is a number : 1.5
|
|
|
|
========================
|
|
Expression: number('abc')
|
|
Object is a number : NaN
|
|
|
|
========================
|
|
Expression: -number('abc')
|
|
Object is a number : NaN
|
|
|
|
========================
|
|
Expression: floor(0.1)
|
|
Object is a number : 0
|
|
|
|
========================
|
|
Expression: floor(-0.1)
|
|
Object is a number : -1
|
|
|
|
========================
|
|
Expression: floor(-0)
|
|
Object is a number : 0
|
|
|
|
========================
|
|
Expression: floor(0)
|
|
Object is a number : 0
|
|
|
|
========================
|
|
Expression: floor(5.2)
|
|
Object is a number : 5
|
|
|
|
========================
|
|
Expression: floor(-5.2)
|
|
Object is a number : -6
|
|
|
|
========================
|
|
Expression: ceiling(0.1)
|
|
Object is a number : 1
|
|
|
|
========================
|
|
Expression: ceiling(-0.1)
|
|
Object is a number : 0
|
|
|
|
========================
|
|
Expression: ceiling(-0)
|
|
Object is a number : 0
|
|
|
|
========================
|
|
Expression: ceiling(0)
|
|
Object is a number : 0
|
|
|
|
========================
|
|
Expression: ceiling(5.2)
|
|
Object is a number : 6
|
|
|
|
========================
|
|
Expression: ceiling(-5.2)
|
|
Object is a number : -5
|
|
|
|
========================
|
|
Expression: round(0.1)
|
|
Object is a number : 0
|
|
|
|
========================
|
|
Expression: round(5.2)
|
|
Object is a number : 5
|
|
|
|
========================
|
|
Expression: round(5.5)
|
|
Object is a number : 6
|
|
|
|
========================
|
|
Expression: round(5.6)
|
|
Object is a number : 6
|
|
|
|
========================
|
|
Expression: round(-0.1)
|
|
Object is a number : 0
|
|
|
|
========================
|
|
Expression: round(-5.2)
|
|
Object is a number : -5
|
|
|
|
========================
|
|
Expression: round(-5.5)
|
|
Object is a number : -5
|
|
|
|
========================
|
|
Expression: round(-5.6)
|
|
Object is a number : -6
|