blob: 880499c8abf48fe306f3e810a735235b55ee4a2e [file] [log] [blame]
khfaraaz82@gmail.comc526fe92012-08-10 22:09:13 +00001/*
2 * Testcase Name : substr04.aql
3 * Description : Test substring2(string,position,position) built in function.
4 * Success : Yes
5 * Date : 18th April 2012
6 */
7
8write output to nc1:"rttest/string_substr04.adm";
9
10for $a in [ substring2("hello world",7,11),
11substring2("hello world",1,11),
12substring2("hello world",3,7),
13substring2("ABCD",3,6),
14substring2("ABCD",0,4),
15substring2("UC Irvine",4,string-length("UC Irvine")),
16substring2("UC Irvine",0,string-length("UC Irvine")),
17substring2("UC Irvine",1,string-length("UC Irvine")),
18substring2(substring2("UC Irvine",4),0,string-length("Irvine")),
19substring2(substring2("UC Irvine",4),0,(string-length("Irvine")/2))
20]
21return $a