blob: e7b638cf80285ea1e13b18a72cf5d05b5215e27a [file] [log] [blame]
/*
* Testcase Name : substr01.aql
* Description : Test substring2(string,position) built in function.
* Success : Yes
* Date : 18th April 2012
*/
let $str1:="Hello World"
let $str2:=substring($str1,10)
let $str3:="This is a test string"
let $str4:=substring($str3,21)
let $str5:="This is a test string"
let $str6:=substring($str5,22)
let $str7:="This is a test string"
let $str8:=substring($str7,0)
let $str9:="This is a test string"
let $str10:=substring($str9,-1)
let $str11:="This is a test string"
let $str12:="This is a another test string"
let $str13:=substring(string-concat([$str11,$str12]),21)
let $str14:=substring("UC Irvine",string-length("UC Irvine")/2)
return { "str2":$str2,"str4":$str4,"str6":$str6,"str8":$str8,"str10":$str10,"str13":$str13,"str14":$str14}