aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-04-10 16:14:34 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-04-10 16:14:34 +0000
commit0eafdef9881c396ce4c014359d8f497cc088cfab (patch)
tree75b836b809ca66fa749c39ed466c464bcadccf5f /test
parent01917aa1cb20fb33e6fa2b1e0ca2125051e491e0 (diff)
downloadandroid_external_libxml2-0eafdef9881c396ce4c014359d8f497cc088cfab.tar.gz
android_external_libxml2-0eafdef9881c396ce4c014359d8f497cc088cfab.tar.bz2
android_external_libxml2-0eafdef9881c396ce4c014359d8f497cc088cfab.zip
another patch from Richard Jinks for substring conformance update of the
* xpath.c: another patch from Richard Jinks for substring conformance * test/XPath/expr/floats test/XPath/expr/strings result/XPath/expr/floats result/XPath/expr/strings: update of the test suite to check those. Daniel
Diffstat (limited to 'test')
-rw-r--r--test/XPath/expr/floats2
-rw-r--r--test/XPath/expr/strings4
2 files changed, 6 insertions, 0 deletions
diff --git a/test/XPath/expr/floats b/test/XPath/expr/floats
index 00ac6573..5d052d6a 100644
--- a/test/XPath/expr/floats
+++ b/test/XPath/expr/floats
@@ -2,6 +2,8 @@
123
1.23
0.123
+4.
+.4
1.23e3
1.23e-3
1 div 0
diff --git a/test/XPath/expr/strings b/test/XPath/expr/strings
index c54cdf33..a070f3a3 100644
--- a/test/XPath/expr/strings
+++ b/test/XPath/expr/strings
@@ -17,5 +17,9 @@ substring("12345",2,3)
substring("12345",2)
substring("12345",1.5,2.6)
substring("12345",0,3)
+substring("12345", 0 div 0, 3)
+substring("12345", 1, 0 div 0)
+substring("12345", -42, 1 div 0)
+substring("12345", -1 div 0, 1 div 0)
string-length("")
string-length("titi")