Re: seeking tcltest help.
- From: "Michael A. Cleverly" <michael@xxxxxxxxxxxx>
- Date: Fri, 19 Aug 2005 19:28:08 -0600
On Fri, 19 Aug 2005 ostrove@xxxxxxxxx wrote:
Thanks. It does almost what I want. It works when the test passes, but doesn't give a useful error message when it fails.
How about this version of gizmo?
proc gizmo {expectedVar actual} {
set expected [set $expectedVar]
if {[llength $expected] != [llength $actual]} then {
error [list Actual $actual != expected $expected]
} foreach x $expected y $actual {
if {![string equal $x $y]} then {
error [list Actual $actual != expected $expected]
}
}return 1 }
Michael .
- Follow-Ups:
- Re: seeking tcltest help.
- From: ostrove
- Re: seeking tcltest help.
- References:
- seeking tcltest help.
- From: Larry W. Virden
- Re: seeking tcltest help.
- From: Don Porter
- Re: seeking tcltest help.
- From: neilostrove
- Re: seeking tcltest help.
- From: Don Porter
- Re: seeking tcltest help.
- From: ostrove
- seeking tcltest help.
- Prev by Date: Re: tackling the packer
- Next by Date: ANNOUNCE: Tcl Windows API extension V0.7
- Previous by thread: Re: seeking tcltest help.
- Next by thread: Re: seeking tcltest help.
- Index(es):