diff options
author | Steve Bennett <steveb@workware.net.au> | 2023-06-17 10:44:05 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2023-07-04 09:23:43 +1000 |
commit | d6ce55ad7e01a51acb8a2a909383366ecc89d0b2 (patch) | |
tree | 6b4428d25bf8ecca748d9d411e7bb472d9eae05c /tests/regmin.test | |
parent | 41f431f30cc6118ef982c6374914810cd07a8106 (diff) | |
download | jimtcl-d6ce55ad7e01a51acb8a2a909383366ecc89d0b2.zip jimtcl-d6ce55ad7e01a51acb8a2a909383366ecc89d0b2.tar.gz jimtcl-d6ce55ad7e01a51acb8a2a909383366ecc89d0b2.tar.bz2 |
tcltest: rework constraint system
Now 'constraint cmd|package' is like 'needs' but sets a constraint
The command to 'needs cmd' and 'constraint cmd' can now take
a subcommand to check.
Add 'constraint|needs eval|expr' to make some constraint checks
simpler.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/regmin.test')
-rw-r--r-- | tests/regmin.test | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/regmin.test b/tests/regmin.test index ed4f1cd..ec0a2c4 100644 --- a/tests/regmin.test +++ b/tests/regmin.test @@ -1,8 +1,7 @@ source [file dirname [info script]]/testing.tcl needs cmd regexp -testConstraint regexp_are [regexp {\d} 1] -needs constraint regexp_are +needs expr regexp_are {[regexp {\d} 1]} test regexpmin-1.1 {Minimal +} { regexp -inline {x(a|b|c)+?c} xabcabc |