I suppose I'm looking for a Dick and Jane guide. I've only
tested one value and I should test boundary conditions, but
I feel I should also be trying to break it in other ways and
look at the results. Looking at it right now, there's no
validity checking on the input. I only feed it numbers, but
there would be nothing stopping someone from feeding it
characters. Well, perhaps that's the Right Thing to do,
instead of restricting someone else's use of the code.
It comes down to the difference between broken code and
"creative" use yielding unexpected results.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||