franchev has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I'm a newbie in Perl. I've just written a hangman game in Perl. However, one of my tasks is to all write a test code (in Perl) that will test that this hangman program is operating properly. Any suggestions on where to begin. I've never written test codes before, but I'm finding even harder with a game like that. Thanks a bunch!

Replies are listed 'Best First'.
Re: writing test code in perl
by kcott (Archbishop) on Feb 09, 2014 at 04:54 UTC
Re: writing test code in perl
by Random_Walk (Prior) on Feb 09, 2014 at 01:54 UTC

    Start by having a read of Test::Simple. Think about what your code should do in various cases and write a small test for these. If you should run into trouble, post a small example illustrating any problems you have

    Cheers,
    R.

    Pereant, qui ante nos nostra dixerunt!