logo       

[SPOILER] Verification Procedure and Test Case.: msg#00009

lang.perl.qotw.discuss

Subject: [SPOILER] Verification Procedure and Test Case.

The module TournVerify.pm that is attached to this message contains a function
called verify_correctness, that given the number of teams, and the resultant
schedule, verifies that it is a proper schedule.

The test-script Test-Suite.t (also attached) makes use of this module and
Test::More to test some representative numbers.

Finally, test-range.pl is a short script that tests the correctness of a range
of numbers. So far I tested my solution (which will be included in a separate
message), up to 882.

Regards,

Shlomi Fish

---------------------------------------------------------------------
Shlomi Fish shlomif-ik1l9ssToec+JF/nGntIXQ@xxxxxxxxxxxxxxxx
Homepage: http://www.shlomifish.org/

Knuth is not God! It took him two days to build the Roman Empire.

Attachment: test-range.pl
Description: Perl program

Attachment: Test-Suite.t
Description: Text Data

Attachment: TournVerify.pm
Description: application/perl-module

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise