khfaraaz82@gmail.com | c526fe9 | 2012-08-10 22:09:13 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Testcase Name : matches04.aql |
| 3 | * Description : Positive tests |
| 4 | * Success : Yes (tests to check for patterns using regular expressions) |
| 5 | * Date : 20th April 2012 |
| 6 | */ |
| 7 | |
| 8 | write output to nc1:"rttest/string_matches04.adm"; |
| 9 | |
| 10 | for $a in [matches("UCI UCI UCI UCI UCI UCI","[UCI{6}]"), |
| 11 | matches("UCI UCI UCI UCI UCI UCI","[UCI{3,6}]"), |
| 12 | matches("UCI UCI UCI UCI UCI UCI","[UCI{7}]"), |
| 13 | matches("UCI UCI UCI UCI UCI UCI","[UCI{1}]"), |
| 14 | matches("UCI UCI UCI","[UCI+]"), |
| 15 | matches("false","[true|false]"), |
| 16 | matches("YX","[XY]")] |
| 17 | return $a |