There's more than one way to do things | |
PerlMonks |
Re^4: bracket processingby AnomalousMonk (Archbishop) |
on Apr 02, 2020 at 04:09 UTC ( [id://11114943]=note: print w/replies, xml ) | Need Help?? |
Please let me suggest once again a reading of How to ask better questions using Test::More and sample data. What I and some other monks would like to see is something like: This can integrate easily into a Test::More testing framework. Individual test cases should be as short as possible and should always be paired with exact expected output. Degenerate and trivial cases, e.g., '' ' ' '()' ' ()' '() ' 'x' 'foo' etc, etc... should also be given. (Update: If exceptions may be thrown, a test case or cases should ultimately be written for each exception; see Test::Exception.) Note that this is work you will have to do anyway because you must always build a testing framework for any serious project you undertake! What I, for one, do not like to see is an invitation to do a lot of work to generate test case input for which I must also guess the correct output; that's your job. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|