summaryrefslogtreecommitdiff
path: root/test/XPath/expr/strings
diff options
context:
space:
mode:
authorAron Xu <aron@debian.org>2012-09-18 01:15:22 +0800
committerAron Xu <aron@debian.org>2012-09-18 01:15:22 +0800
commitf660f9d2924c7549bc87e7f9b4ece7c9727b3682 (patch)
tree816b3ef0e89d1601803b5dc1b90b50ade0567043 /test/XPath/expr/strings
parentd7372d053bbd1d58216fbb04d1771ffa4cc3e624 (diff)
downloadlibxml2-upstream/2.9.0.tar.gz
Imported Upstream version 2.9.0upstream/2.9.0
Diffstat (limited to 'test/XPath/expr/strings')
-rw-r--r--test/XPath/expr/strings34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/XPath/expr/strings b/test/XPath/expr/strings
new file mode 100644
index 0000000..849ca14
--- /dev/null
+++ b/test/XPath/expr/strings
@@ -0,0 +1,34 @@
+string(5)
+string(0.5)
+string(-0.5)
+string(true())
+string(false())
+concat("titi","toto")
+concat("titi","toto","tata")
+concat("titi",'toto')
+concat("titi",'toto',"tata","last")
+starts-with("tititoto","titi")
+starts-with("tititoto","to")
+contains("tititototata","titi")
+contains("tititototata","toto")
+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",-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")