On Sat, Dec 08, 2001 at 09:48:24PM -0700, chromatic wrote:
> On Sat, 08 Dec 2001 12:04:27 -0700, Richard Clamp wrote:
>
> When I was writing tests for libnet, Graham recommended not to chdir() into 't'
> for testing outside of the core. I'd probably move that inside the if block.
This is a piece
On Sat, 08 Dec 2001 12:04:27 -0700, Richard Clamp wrote:
> Does it look like I'm heading down the right road with this? If so let me
> know and I'll submit it to p5p for applying to blead.
+BEGIN {
+chdir 't' if -d 't';
+
+if ( $ENV{PERL_CORE} ) {
+@INC = '../lib';
+}
+}
I noticed that this was still on the list of untested core modules, so
decided to have a go.
It's a bit of an odd one to test, as Term::ReadLine is just a factory
in front of Term::ReadLine::{Gnu,Perl}.
This also patches some doc bugs I noticed while writing the test, and
allows for it to pick u