aboutsummaryrefslogtreecommitdiffstats
path: root/test/XPath/expr/strings
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-06-10 15:59:44 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-06-10 15:59:44 +0000
commit9e4123023a930924e26ca965ef14ea67bff7dfc3 (patch)
tree58e860c4cfd25264f9a58ad314bf3de03d44ce7f /test/XPath/expr/strings
parent9c45ba8f56f31a0f34894b4cf4c91a8686c40193 (diff)
downloadandroid_external_libxml2-9e4123023a930924e26ca965ef14ea67bff7dfc3.tar.gz
android_external_libxml2-9e4123023a930924e26ca965ef14ea67bff7dfc3.tar.bz2
android_external_libxml2-9e4123023a930924e26ca965ef14ea67bff7dfc3.zip
patch from Richard Jinks for XPath substring() function new set of tests
* xpath.c: patch from Richard Jinks for XPath substring() function * result/XPath/expr/strings test/XPath/expr/strings: new set of tests Daniel
Diffstat (limited to 'test/XPath/expr/strings')
-rw-r--r--test/XPath/expr/strings17
1 files changed, 13 insertions, 4 deletions
diff --git a/test/XPath/expr/strings b/test/XPath/expr/strings
index a070f3a3..849ca14c 100644
--- a/test/XPath/expr/strings
+++ b/test/XPath/expr/strings
@@ -15,11 +15,20 @@ contains("tititototata","tata")
contains("tititototata","tita")
substring("12345",2,3)
substring("12345",2)
+substring("12345",-4)
+substring("12345",3.4)
+substring("12345",3.6)
substring("12345",1.5,2.6)
+substring("12345",2.2,2.2)
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)
+substring("12345",-8,10)
+substring("12345",4,-10)
+substring("12345",0 div 0, 3)
+substring("12345",1, 0 div 0)
+substring("12345",1 div 0, 3)
+substring("12345",3,-1 div 0)
+substring("12345",-42, 1 div 0)
+substring("12345",-1 div 0, 1 div 0)
+substring("12345",-1 div 0,5)
string-length("")
string-length("titi")