Welcome to the world of testing. (Not that I've been here all that long, but welcome.)

For the benefit of others reading your post, let me point out that effective test suites can be pretty basic. Typically, my tests are a line or two each -- less elaborate than the systematic checker you posted here. My test file may contain many of these cases, but each unit test is pretty basic. And as I find bugs, I fix the bug and cover myself by testing that case.

The XP approach of very simple unit tests, written before the code itself, testing basic and edge cases, is a strong strategy. If comprehensive, any code that passes the suite by definition matches the spec. In short, the tests document the common and unusual behavior of every object and method.

Surely whomever brings you gifts this time of year will be impressed by any use of testing at all, so that should bode well for you!

rkg


In reply to Re: Testing modules and methods while waiting for Santa by rkg
in thread Testing modules and methods while waiting for Santa by TVSET

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.