khfaraaz82@gmail.com | c526fe9 | 2012-08-10 22:09:13 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Testcase Name : startwith02.aql |
| 3 | * Description : Positive tests |
| 4 | * Success : Yes |
| 5 | * Date : 19th April 2012 |
| 6 | */ |
| 7 | |
| 8 | write output to nc1:"rttest/string_startwith02.adm"; |
| 9 | |
| 10 | for $a in [start-with("Hello","H"), |
| 11 | start-with("Hello",lowercase("He")), |
| 12 | start-with("Hello",""), |
| 13 | start-with("Hello"," "), |
| 14 | start-with("Hello",null), |
| 15 | start-with("abcdef",lowercase("ABCDEf")), |
| 16 | start-with("abcdef","abcdef"), |
| 17 | start-with("abcdef","abc "), |
| 18 | start-with("abc\tdef","abc\t"), |
| 19 | start-with(" abcdef","abc"), |
| 20 | start-with("0x1FF","0"), |
| 21 | start-with("<ID>","<"), |
| 22 | start-with("aBCDEFghI",codepoint-to-string([0041])), |
| 23 | start-with("AbCDEFghI",codepoint-to-string([0041]))] |
| 24 | return $a |
| 25 | |
| 26 | |