Skip to content

Commit

Permalink
Avoid requiring parens in expressions in [like]
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Dec 11, 2009
1 parent 5fd27b2 commit 480b2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test_more.tcl
Expand Up @@ -86,7 +86,7 @@ proc pass {{description ""} {special ""}} {
}

proc like {value regexp {description ""}} {
if ([regexp $regexp $value]) {
if {[regexp $regexp $value]} {
pass $description
} else {
is "STRING: $value" "REGEXP: $regexp" $description
Expand Down

0 comments on commit 480b2d6

Please sign in to comment.