cmac has asked for the wisdom of the Perl Monks concerning the following question:
These tests assume that Perl stores the constants 0, 999, 1000, 9999, and 10000 as strings. They pass on all CPAN testers' systems except one (so far).is ($ipw->getcc(0), '**', "getcc(0) should return **"); is ($ipw->getcc(999), '**', "getcc(999) should return **"); # string 1000 is equivalent to '49.48.48.48' which is not covered is ($ipw->getcc(1000), '??', "getcc(1000) should return ??"); # string 9999 is equivalent to '57.57.57.57' is ($ipw->getcc(9999), 'EU', "getcc(9999) should return EU"); is ($ipw->getcc(10000), '**', "getcc(10000) should return **");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CPAN test problem
by BrowserUk (Patriarch) on Apr 11, 2010 at 19:26 UTC | |
by cmac (Monk) on Apr 11, 2010 at 20:28 UTC | |
|
Re: CPAN test problem
by cdarke (Prior) on Apr 12, 2010 at 07:34 UTC | |
by cmac (Monk) on Apr 12, 2010 at 16:59 UTC | |
by syphilis (Archbishop) on Apr 13, 2010 at 07:28 UTC |