Skip to content
Tcl Source Code Artifact [94b9fd42d7]
Login

Artifact [94b9fd42d7]

Artifact 94b9fd42d75c08e7becf3dc32b6fe9e7dc8e0a93:

Ticket change [94b9fd42d7] - Ticket [513983ffffffffff|513983ffff] <i>invalid calls to [test] should throw errors</i> status still Open with 4 other changes by melissachawla on 2002-02-08 11:27:24.
D 2002-02-08T11:27:24
J icomment Logged\sIn:\sYES\s\nuser_id=225959\n\nHi\sDon,\nIt's\sMelissa\sChawla,\sthe\s(woefully\sdelinquent)\smaintainer\sof\nthis\spackage!\s\sI'm\ssorry\sfor\snot\slogging\sin\sbefore.\s\sI\shad\nthought\sthat\smy\semail\saddress\s(which\sincludes\smy\sfull\sname)\nwould\sbe\sincluded\sin\smy\smessage,\sbut\sit\swasn't.\n\nAs\sfor\sreading\sthe\spatches,\sI\sdidn't,\sand\sI'm\ssorry\sfor\nthat.\s\sWhen\sI\sstarted\smy\smessage,\sthe\spatch\swasn't\suploaded\nyet.\s\sI\sguess\sI\sdon't\sreally\shave\smuch\ssympathy\sfor\sfolks\nwho\scall\sthe\stest\scommand\swith\sbad\sargs.\s\sYou\scan\srun\nprocheck\sover\syour\scode\sto\scatch\ssuch\sproblems\s(I've\sused\sa\ntcltest.pcx\sextention\sto\sprocheck\sto\sachieve\sthis\sin\sthe\npast).\s\sAlthough\sif\syou're\sgenerating\syour\stest\scalls,\nprocheck\swon't\shelp.\n\nI'm\sall\sfor\simproving\sthe\sdocs\sso\sthey\sfully\sreflect\swhat\nthe\scode\sdoes.\n\nI'm\snot\stotally\sopposed\sto\sthe\slast\ssuggestion\sof\shaving\san\ntcltest\spackage\soption\sto\sdisallow\sthe\stest\scommand\sfrom\never\sthrowing\san\sexception,\sthough\sI\swonder\show\smany\sother\npeople\swill\sreally\suse\sit.\s\sIn\sthe\smean\stime,\syou\scan\nachieve\sthis\sby\sdoing\ssomething\slike\sthe\sfollowing\n(untested)\scode:\n\npackage\srequire\stcltest\s2.0\nrename\s::tcltest::test\s::tcltest::test_old\nproc\s::tcltest::test\s{args}\s{\n\s\s\s\s\s\sif\s{[catch\s{eval\s::tcltest::test_old\s$args}\sresult]}\s{\n\s\s\s\s\s\s\s\sputs\s"bad\scall\sto\stest\scommand\swith\sargs:\s$args:\n$::errorInfo"\n\s\s\s\s}\n\s\s\s\sreturn\s$result\n}\n\nHopefully\sthis\ssecond\sround\sof\scomments\sis\smore\shelpful\sto\nfolks.\n-Melissa\n
J login melissachawla
J mimetype text/plain
J username melissachawla
K 513983ffffffffffffffffffffffffffffffffff
U melissachawla
Z 55a4ca0b3bbc654cdba3d0b6caedf2ea