Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Add tcltest::test -match list

Closed490298ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 17 years ago
Descriptionplain2001-12-07 17:04:53
Add a new option, list, to the -match switch
of [tcltest::test] that matches if the
result of the test represents the "same list"
as the expected value.  This should treat all
strings that would be accepted as the same
list by Tcl as an equivalence class.  For example,

"a b c" 

would match 

"{a} {b} \c"
melissachawlaplain2001-12-08 06:03:24
Logged In: YES 
user_id=225959

I forsee people wanting many different flavors of result 
matching.  Maybe the next step is the add a
    -match command <command>
option, that works like the -command option to lsort.
dgpplain2002-06-01 04:15:08
Logged In: YES 
user_id=80530

With acceptance of TIP 85, the ability
to add a new -match value is easily
achieved with a call to [customMatch],
making this FR out of date.
dkfplain2008-11-21 21:26:14
data_type - 210894
dkfplain2009-07-29 19:52:16
IP - Comment Removed: 130.88.1.31
Log in (anonymous is fine) to add a comment.