khfaraaz82@gmail.com | c526fe9 | 2012-08-10 22:09:13 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Testcase Name : matches02.aql |
| 3 | * Description : Positive tests |
| 4 | * Success : Yes |
| 5 | * Date : 23th April 2012 |
| 6 | */ |
| 7 | |
| 8 | write output to nc1:"rttest/string_matches02.adm"; |
| 9 | |
| 10 | let $c1:="Hello World" |
| 11 | let $c2:="Hello World" |
| 12 | let $c3:=matches($c1,$c2) |
| 13 | let $c4:=matches("Asterix for Dummies","Asterix for Dummies") |
| 14 | let $c5:=matches("semistructured data",lowercase("SEMISTRUCTURED DATA")) |
| 15 | let $c6:=matches("Mega Living!","Mega") |
| 16 | let $c7:=matches("Mega Living!","ving!") |
| 17 | let $c8:=matches("Mega Living!"," ") |
| 18 | let $c9:=matches("Mega Living!","a l") |
| 19 | let $c10:=matches("Mega Living!","") |
| 20 | let $c11:=matches(" "," ") |
| 21 | let $c12:=matches("aaaa","aaaaa") |
| 22 | return {"c3":$c3,"c4":$c4,"c5":$c5,"c6":$c6,"c7":$c7,"c8":$c8,"c9":$c9,"c10":$c10,"c11":$c11,"c12":$c12} |
| 23 | |