|
Solution tester for [Perl 'Medium' QOTW - Tournament Schedule]: msg#00010lang.perl.qotw.discuss
Attached is a quick-and-dirty, and highly ugly, solution verifyer for this problem. I've used it to verify that 2 out of the 3 solutions posted so far are correct - one I had to translate into perl and out of ruby first, but that was pretty easy. (And in fact, I'm now ashamed at how convoluted, long and ugly my solution is, but oh well) To run it, just do: perl checkit.pl my_perl_file.pl If you want to specify that it should only check certain values (e.g. selected powers of two), just do: perl checkit.pl my_perl_file.pl allocate_schedule 2 4 8 16 32 64 128 If you called your subroutine something other than 'allocate_schedule', then give that as the second argument.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [SPOILER] Verification Procedure and Test Case.: 00010, Shlomi Fish |
|---|---|
| Next by Date: | [SPOILER] Medium QOTW 1 solution: 00010, Daniel Martin |
| Previous by Thread: | [SPOILER] Re: [QUIZ] Perl 'Medium' QOTW - Tournament Schedulei: 00010, Greg Matheson |
| Next by Thread: | [Solution] Perl 'Medium' QOTW: 00010, Rod Adams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |