khfaraaz82@gmail.com | c526fe9 | 2012-08-10 22:09:13 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Testcase Name : matches11.aql |
| 3 | * Description : Positive tests |
| 4 | * Success : Yes |
| 5 | * Date : 20th April 2012 |
| 6 | */ |
| 7 | |
| 8 | write output to nc1:"rttest/string_matches11.adm"; |
| 9 | |
| 10 | for $a in [matches("hello",null), |
| 11 | matches("hello","helllo"), |
| 12 | matches("hello"," "), |
| 13 | matches(null,"hello"), |
jarodwen | 20e5a58 | 2013-03-18 04:33:00 +0000 | [diff] [blame] | 14 | matches(null, ""), |
| 15 | matches(null, null), |
khfaraaz82@gmail.com | c526fe9 | 2012-08-10 22:09:13 +0000 | [diff] [blame] | 16 | matches("hello","[^a-z]")] |
| 17 | return $a |
| 18 | |