.
D 2008-09-26T15:38:04
J assignee nijtmans
J cmimetype text/plain
J comment When\stests\sfail,\stcltest\soutputs\ssomething\slike:\n\s\s----\sResult\swas:\n\s\sabc\n\s\s----\sResult\sshould\shave\sbeen\s(exact\smatching):\n\s\sdef\n\s\s====\sfoo-1.1\sFAILED\n\nWhen\sthe\stwo\sstrings\sbeing\scompared\sare\svery\nlong,\sthis\sbecomes\sunreadable.\sjunit\shas\sthe\nfeature\sthat\sin\sthis\scase,\sthe\sfirst\sand\slast\ncharacters\sfrom\sboth\sstrings,\sas\sfar\sas\sthey\nare\sequal\sare\sstripped\sand\sreplaced\swith\s"..."\nThis\sway,\syou\scan\ssee\squickly\swhich\spart\sof\nthe\sstring\sis\sdifferent,\sand\swhat\sthe\sdifference\nis.\sThis\sfeature\sI\swould\slike\sto\ssee\sin\stcltest\nas\swell.\nSo,\sit\scould\slook\slike:\n\s\s----\sResult\swas:\n\s\s...foobar\s...\n\s\s----\sResult\sshould\shave\sbeen\s(exact\smatching):\n\s\s...fooBar\s...\n\s\s====\sfoo-1.1\sFAILED\n\nTherefore\sI\smade\sthe\sfollowing\simplementation\n(see\sattached\sdiff.txt\sfile).\sIf\sminimally\nthe\sfirst\s8\scharacters\sare\sequal,\sthe\sequal\npart\sis\sreplaced\sby\s"..."\sfollowed\sby\sthe\nlast\s3\sequal\scharacters.\sThe\slast\spart\sof\nthe\sstring\sis\shandled\sequivalently.\n\nA\slot\sof\svariations\sare\spossible,\sbut\sI\swould\nlike\ssome\sfeedback/review\sbefore\scommitting\sit.\n\nRegards,\n\s\s\s\s\s\s\s\s\sJan\sNijtmans
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nijtmans
J subsystem 34.\stcltest\sPackage
J title smart\struncation\sof\slong\slines\sin\stcltest\soutput
J type RFE
K 2130388fffffffffffffffffffffffffffffffff
U nijtmans
Z 16794c8e3b0e3141e3fd91dc0437acd1