blob: 7f4623c7c52fb0be1ba236d9faf0714313ed76a7 [file] [log] [blame]
khfaraaz82@gmail.comc526fe92012-08-10 22:09:13 +00001/*
2 * Testcase Name : matches03.aql
3 * Description : Positive tests
4 * : Test matches functions with regular expressions as third input parameter
5 * Success : Yes
6 * Date : 23th April 2012
7 */
8
9
10write output to nc1:"rttest/string_matches03.adm";
11
12for $a in [matches("1234567890","[^a-z]"),
13matches("1234567890","[^a-zA-Z]"),
14matches("abcdefghABCDEFGH","[^a-zA-Z]"),
15matches("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","[^a-zA-Z]"),
16matches("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","[^A-Z]"),
17matches("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","[^a-z]"),
18matches("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","[^0-9]"),
19matches("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","[0-9]"),
20matches("adefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","[a-z&&[^bc]]"),
21matches("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","[a-z&&[^bc]]"),
22matches("bc","[a-z&&[^bc]]"),
23matches("mnop","[a-z&&[^m-p]]"),
24matches("abcdmnop","[a-z&&[^m-p]]")]
25return $a
26