1 source [file dirname [info script]]/testing.tcl
4 testConstraint regexp_are [regexp {\d} 1]
5 needs constraint regexp_are
7 test regexpmin-1.1 {Minimal +} {
8 regexp -inline {x(a|b|c)+?c} xabcabc
11 test regexpmin-1.2 {Maximal +} {
12 regexp -inline {x(a|b|c)+c} xabcabc
15 test regexpmin-1.3 {Minimal *} {
16 regexp -inline {x(a|b)*?} xababcabc
19 test regexpmin-1.4 {Maximal *} {
20 regexp -inline {x(a|b)*} xababcabc
23 test regexpmin-1.5 {Maximal ?} {
24 regexp -inline {x(a|b)?} xababcabc
27 test regexpmin-1.6 {Minimal ?} {
28 regexp -inline {x(a|b)??} xababcabc
31 test regexpmin-1.7 {Maximal html} {
32 regexp -inline {<(.+)>} <foo><bar><grill>
33 } {<foo><bar><grill> foo><bar><grill}
35 test regexpmin-1.8 {Minimal html} {
36 regexp -inline {<(.+?)>} <foo><bar><grill>
39 test regexpmin-2.1 {utf8 repeat} utf8 {
40 regexp -inline {a\u00df+} a\udf\udf\udf\udf\ub5z
43 test regexpmin-2.2 {utf8 min repeat} utf8 {
44 regexp -inline {a\u00df+?} a\udf\udf\udf\udf\ub5z
47 test regexpmin-3.1 {non-capturing paren} {
48 regexp -inline {x(?:a|b)?} xababcabc
51 test regexpmin-3.2 {non-capturing paren} {
52 regexp -inline {x(?:a|b)?.*(b|c)} xababcabc