[Kc] Testing

David Nicol davidnicol at gmail.com
Fri Sep 14 15:17:47 PDT 2007


That's not really what the Test:: modules are for.  They are for
verifying that a module does what it is supposed to do.  For your
purposes as described, I would put "or die ..." after a lot of the parse points
and invariants in the spreadsheets, and wrap each page-parsing event
in eval{...} and ignore and report when the parsing fails.

things like

    ($cbnum) = $shape =~ /Check Box (\d+)/i or die "NO CHECK BOX FOUND";


On 9/14/07, djgoku <djgoku at gmail.com> wrote:
> So I read through both Test::Tutorial and Test::Simple and I am
> wondering how can I test my data that I get from excel spreadsheets:
> http://mail.pm.org/pipermail/kc/2006-September/000588.html
>
> I have a couple thousand sheets that will be parsed, but not all the
> sheets are at a current easily parsed format. So how can I find the
> bad sheets and how should I start testing to make sure the data I want
> is what I am really getting.
>
> Currently the this is more a script than a module I don't know yet how
> to create a module, but plan to convert this sometime.
>
> Thanks,
>
> Jonathan
> _______________________________________________
> kc mailing list
> kc at pm.org
> http://mail.pm.org/mailman/listinfo/kc
>


-- 
The Wisconsin Employees' right to know law regarding toxic substances
specifically exempts Lutefisk -- Wikipedia


More information about the kc mailing list