Skip to content
Tcl Source Code View Ticket
Login

View Ticket

-constraints broken by \n

Closed / Fixed495977ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2001-12-21 22:17:09
The -constraints option of tcltest::test is documented:

"...can be list of one or more keywords or an
expression."

However, if one includes a \n in the value, like so:

test ... -constraints {
foo bar
} -body ...

Then the processing of the -constraints attribute
interprets the value as an expression, even though
it's a valid list of keywords.  The undesired
result is that a single constraint "...  foo bar ..."
is enforced instead of the combination of
constraint foo and constraint bar.

This can be worked around by using [list] to construct
the list of constraint keywords, but that should not
be required.
hobbs Ticket [495977ffff]: 1 change [History diff]2002-03-23 06:06:31
dgpplain2002-03-26 02:21:19
Logged In: YES 
user_id=80530

Checking of the -constraints value now allows
any whitespace to be in the "list of keywords"
form.  It also checks that it has a Tcl list
when it needs one.

Change committed to HEAD (2.0.2).
Log in (anonymous is fine) to add a comment.