blob: 829a176443f2b64b89604c9864b5e19e8ecf49b3 [file] [log] [blame]
khfaraaz82@gmail.comc526fe92012-08-10 22:09:13 +00001/*
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
8write output to nc1:"rttest/string_matches04.adm";
9
10for $a in [matches("UCI UCI UCI UCI UCI UCI","[UCI{6}]"),
11matches("UCI UCI UCI UCI UCI UCI","[UCI{3,6}]"),
12matches("UCI UCI UCI UCI UCI UCI","[UCI{7}]"),
13matches("UCI UCI UCI UCI UCI UCI","[UCI{1}]"),
14matches("UCI UCI UCI","[UCI+]"),
15matches("false","[true|false]"),
16matches("YX","[XY]")]
17return $a