Skip to content
Tcl Source Code Artifact [b3530ccde6]
Login

Artifact [b3530ccde6]

Artifact b3530ccde6a50e93596a309c74b4a330f49f771d:

Ticket change [b3530ccde6] - Ticket [513983ffffffffff|513983ffff] <i>invalid calls to [test] should throw errors</i> status still Open with 4 other changes by kenstir on 2002-04-10 08:49:52.
D 2002-04-10T08:49:52
J icomment \n\nFile\sAdded\s-\s20897:\spatch.txt\n\nLogged\sIn:\sYES\s\nuser_id=246646\n\nI\swould\slike\sto\slobby\sa\ssecond\stime\sfor\sthis\spatch.\s\sI\shave\nreconstructed\sDon's\spatch\sso\sthat:\n\n\s1)\sit\sworks\son\sthe\slatest\sCVS\sHEAD\n\s2)\sthe\stests\spass\n\s3)\sthe\spackage\sversion\sis\sincremented\sto\s2.0.3\n\nThis\spatch\simplements\sa\scontract\s(as\sin\s"programming\sby\ncontract")\sbetween\sthe\scaller\sand\stcltest::test.\s\sThe\ncontract\sis,\s"I\ssupply\syou\swith\sa\svalid\stest\sand\syou\srun\sthe\ntest".\s\sIf\sthe\scontract\scannot\sbe\sfulfilled,\sthat\sis,\sif\sthe\ntest\scan't\sbe\srun,\sthen\san\serror\sis\sthrown.\n\nI\sbelieve\sstrongly\sthat\sthis\scontract\sis\sa\smore\srobust\sway\nto\sconstruct\sa\slarge\ssuite\sof\stests.\s\sImagine\sthat\sit\nweren't\sthis\sway;\show\sdo\sI\sverify\sthat\smy\stests\sare\svalid?\s\nParse\sthe\soutput\sthrough\sthe\serrorChannel?\s\sThat\sis\snot\nrobust.\s\sWrap\seach\scall\sto\s'test'\sin\san\s'if'?\s\sThis\sis\snot\npractical\sand\sso\snobody\sdoes\sthis.\s\sOut\sof\s10,000\stests\sin\nthe\stcl\ssuite,\sonly\s2\scalls\s(in\stcltest.test)\swere\schecking\nthe\sreturn\sstatus\sof\s'test'.\n\nTcltest\shas\sbeen\sgreatly\senhanced\sin\s2.0,\sand\sit\sremains\san\nexcellent\stool\sfor\svalidating\ssoftware\scorrectness.\s\sI\swould\nbe\sdisappointed\sto\ssee\sit\scompromised\sby\sallowing\sbroken\nsoftware\sto\spass\sthrough\sits\stests\swithout\sanyone\snoticing\nthe\sproblem.\n\nRegards,\nKen\sCox\n\n
J login kenstir
J mimetype text/plain
J username kenstir
K 513983ffffffffffffffffffffffffffffffffff
U kenstir
Z 31150c15c9cd6931869ab7b5f1931d53