diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2017-05-29 20:14:42 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2017-05-31 15:46:29 +0200 |
commit | a851868a75c108e3b8fc507f5d6555b09abb51c9 (patch) | |
tree | 659bf5a84a47be4f329c3708b866d686c32a16b4 /test/XPath/expr | |
parent | 4bebb030db2100fce5b43fbbae413d372ee70497 (diff) | |
download | libxml2-a851868a75c108e3b8fc507f5d6555b09abb51c9.tar.gz |
Parse small XPath numbers more accurately
Don't count leading zeros towards the fraction size limit. This allows
to parse numbers like
0.0000000000000000000000000000000000000000000000000000000001
which is the only standard-conformant way to represent such numbers, as
scientific notation isn't allowed in XPath 1.0. (It is allowed in XPath
2.0 and in libxml2 as an extension, though.)
Overall accuracy is still bad, see bug 783238.
Diffstat (limited to 'test/XPath/expr')
-rw-r--r-- | test/XPath/expr/base | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/XPath/expr/base b/test/XPath/expr/base index f57e4d0c..823f64b7 100644 --- a/test/XPath/expr/base +++ b/test/XPath/expr/base @@ -4,4 +4,6 @@ 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 self::-name |